/system/extras/simpleperf/ |
D | sample_tree.h | 92 EntryT* sample = CreateSample(r, in_kernel, &acc_info); in ProcessSampleRecord() local 93 if (sample == nullptr) { in ProcessSampleRecord() 102 const ThreadEntry* thread = GetThreadOfSample(sample); in ProcessSampleRecord() 123 callchain.push_back(sample); in ProcessSampleRecord() 147 CreateCallChainSample(sample, ip, in_kernel, callchain, acc_info); in ProcessSampleRecord() 161 EntryT* sample = callchain[0]; in ProcessSampleRecord() local 164 if (added_set.find(sample) != added_set.end()) { in ProcessSampleRecord() 167 added_set.insert(sample); in ProcessSampleRecord() 168 InsertCallChainForSample(sample, callchain, acc_info); in ProcessSampleRecord() 187 virtual EntryT* CreateCallChainSample(const EntryT* sample, uint64_t ip, [all …]
|
D | SampleDisplayer.h | 31 std::string DisplayAccumulatedOverhead(const EntryT* sample, in DisplayAccumulatedOverhead() argument 33 uint64_t period = sample->period + sample->accumulated_period; in DisplayAccumulatedOverhead() 40 std::string DisplayAccumulatedPeriod(const EntryT* sample) { in DisplayAccumulatedPeriod() argument 41 return android::base::StringPrintf("%" PRIu64, sample->period + sample->accumulated_period); in DisplayAccumulatedPeriod() 45 std::string DisplaySelfOverhead(const EntryT* sample, const InfoT* info) { in DisplaySelfOverhead() argument 46 uint64_t period = sample->period; in DisplaySelfOverhead() 54 std::string function_name(const EntryT* sample) { \ 55 return android::base::StringPrintf("%" PRIu64, sample->display_part); \ 60 std::string function_name(const EntryT* sample) { \ 61 return android::base::StringPrintf("0x%" PRIx64, sample->display_part); \ [all …]
|
D | cmd_report.cpp | 165 std::unique_ptr<SampleEntry> sample( in CreateBranchSample() local 168 sample->branch_from.map = from_map; in CreateBranchSample() 169 sample->branch_from.symbol = from_symbol; in CreateBranchSample() 170 sample->branch_from.vaddr_in_file = from_vaddr_in_file; in CreateBranchSample() 171 sample->branch_from.flags = item.flags; in CreateBranchSample() 172 return InsertSample(std::move(sample)); in CreateBranchSample() 175 SampleEntry* CreateCallChainSample(const SampleEntry* sample, uint64_t ip, in CreateCallChainSample() argument 179 const ThreadEntry* thread = sample->thread; in CreateCallChainSample() 184 sample->time, 0, acc_info, 0, thread, map, symbol, vaddr_in_file)); in CreateCallChainSample() 185 callchain_sample->thread_comm = sample->thread_comm; in CreateCallChainSample() [all …]
|
D | sample_tree_test.cpp | 96 static void SampleMatchExpectation(const SampleEntry& sample, in SampleMatchExpectation() argument 100 ASSERT_EQ(expected.pid, sample.pid); in SampleMatchExpectation() 101 ASSERT_EQ(expected.tid, sample.tid); in SampleMatchExpectation() 102 ASSERT_STREQ(expected.thread_comm, sample.thread_comm); in SampleMatchExpectation() 103 ASSERT_EQ(expected.dso_name, sample.dso_name); in SampleMatchExpectation() 104 ASSERT_EQ(expected.map_start_addr, sample.map_start_addr); in SampleMatchExpectation() 105 ASSERT_EQ(expected.sample_count, sample.sample_count); in SampleMatchExpectation()
|
D | cmd_kmem.cpp | 87 static std::string DisplayFragment(const SlabSample* sample) { in DisplayFragment() argument 89 sample->bytes_alloc - sample->bytes_req); in DisplayFragment() 185 SlabSample* sample = in CreateSample() local 189 std::make_pair(ptr, std::make_pair(r.cpu_data.cpu, sample))); in CreateSample() 192 return sample; in CreateSample() 197 SlabSample* sample = it->second.second; in CreateSample() local 199 sample->cross_cpu_allocations++; in CreateSample() 215 const SlabSample* sample, uint64_t ip, bool in_kernel, in CreateCallChainSample() argument 224 new SlabSample(symbol, sample->ptr, acc_info.bytes_req, in CreateCallChainSample() 225 acc_info.bytes_alloc, 1, sample->gfp_flags, 0)), in CreateCallChainSample() [all …]
|
D | cmd_report_sample.cpp | 275 auto& sample = proto_record.sample(); in DumpProtobufReport() local 278 FprintIndented(report_fp_, 1, "time: %" PRIu64 "\n", sample.time()); in DumpProtobufReport() 279 FprintIndented(report_fp_, 1, "thread_id: %d\n", sample.thread_id()); in DumpProtobufReport() 281 for (int i = 0; i < sample.callchain_size(); ++i) { in DumpProtobufReport() 282 const proto::Sample_CallChainEntry& callchain = sample.callchain(i); in DumpProtobufReport() 360 proto::Sample* sample = proto_record.mutable_sample(); in PrintSampleRecordInProtobuf() local 361 sample->set_time(r.time_data.time); in PrintSampleRecordInProtobuf() 362 sample->set_thread_id(r.tid_data.tid); in PrintSampleRecordInProtobuf() 369 proto::Sample_CallChainEntry* callchain = sample->add_callchain(); in PrintSampleRecordInProtobuf() 400 callchain = sample->add_callchain(); in PrintSampleRecordInProtobuf()
|
D | callchain.h | 104 const std::vector<std::unique_ptr<NodeT>>& nodes, const EntryT* sample, in FindMatchingNode() 107 if (is_same_sample(node->chain.front(), sample)) { in FindMatchingNode()
|
D | README.md | 41 4. Each time a given number of events happen, linux kernel dumps a sample to a 204 # using default sample frequency (4000 samples per second), writing records 238 # Record with sample frequency 1000: sample 1000 times every second running. 241 # Record with sample period 100000: sample 1 time every 100000 events. 267 record command. Report command groups records into different sample entries, 268 sorts sample entries based on how many events each sample entry contains, and 269 prints out each sample entry. By passing options, we can select where to find 273 Below is an example. Records are grouped into 4 sample entries, each entry is 275 belonging to a sample entry. The first column is Overhead, which shows the 276 percentage of events inside current sample entry in total events. As the [all …]
|
D | report_sample.proto | 55 Sample sample = 1; field
|
/system/extras/simpleperf/scripts/ |
D | report_sample.py | 40 sample = lib.GetNextSample() 41 if sample is None: 48 sec = sample.time / 1000000000 49 usec = (sample.time - sec * 1000000000) / 1000 50 print('%s\t%d [%03d] %d.%d:\t\t%d %s:' % (sample.thread_comm, 51 sample.tid, sample.cpu, sec, 52 usec, sample.period, event.name)) 53 print('%16x\t%s (%s)' % (sample.ip, symbol.symbol_name, symbol.dso_name))
|
D | simpleperf_report_lib.py | 94 def __init__(self, sample): argument 95 self.ip = sample.ip 96 self.pid = sample.pid 97 self.tid = sample.tid 98 self.thread_comm = _char_pt_to_str(sample.thread_comm) 99 self.time = sample.time 100 self.in_kernel = sample.in_kernel 101 self.cpu = sample.cpu 102 self.period = sample.period 209 sample = self._GetNextSampleFunc(self.getInstance()) [all …]
|
D | pprof_proto_generator.py | 69 print('%d samples' % len(p.sample)) 70 for i in range(len(p.sample)): 72 self.show_sample(p.sample[i], sub_space) 105 def show_sample(self, sample, space=''): argument 107 for i in range(len(sample.location_id)): 108 print('%slocation_id[%d]: id %d' % (space, i, sample.location_id[i])) 109 self.show_location_id(sample.location_id[i], sub_space) 110 for i in range(len(sample.value)): 111 print('%svalue[%d] = %d' % (space, i, sample.value[i])) 112 for i in range(len(sample.label)): [all …]
|
D | annotate.py | 327 sample = lib.GetNextSample() 328 if sample is None: 331 if not self._filter_sample(sample): 344 def _filter_sample(self, sample): argument 347 if sample.thread_comm not in self.comm_filter: 350 if sample.pid not in self.pid_filter: 353 if sample.tid not in self.tid_filter: 383 sample = lib.GetNextSample() 384 if sample is None: 387 if not self._filter_sample(sample): [all …]
|
D | binary_cache_builder.py | 74 sample = lib.GetNextSample() 75 if sample is None:
|
/system/extras/perfprofd/quipper/ |
D | perf_internals.h | 44 explicit PerfSampleCustodian(struct perf_sample& sample) in PerfSampleCustodian() argument 45 : sample_(sample) { in PerfSampleCustodian() 46 sample.raw_data = NULL; in PerfSampleCustodian() 47 sample.callchain = NULL; in PerfSampleCustodian() 48 sample.branch_stack = NULL; in PerfSampleCustodian()
|
D | perf_reader.cc | 253 struct perf_sample* sample) { in ReadReadInfo() argument 255 sample->read.time_enabled = *array++; in ReadReadInfo() 257 sample->read.time_running = *array++; in ReadReadInfo() 259 sample->read.one.id = *array++; in ReadReadInfo() 262 ByteSwap(&sample->read.time_enabled); in ReadReadInfo() 263 ByteSwap(&sample->read.time_running); in ReadReadInfo() 264 ByteSwap(&sample->read.one.id); in ReadReadInfo() 274 struct perf_sample* sample) { in ReadCallchain() argument 276 CHECK_EQ(static_cast<void*>(NULL), sample->callchain); in ReadCallchain() 291 sample->callchain = callchain; in ReadCallchain() [all …]
|
D | perf_reader.h | 150 struct perf_sample* sample) const; 152 bool WritePerfSampleInfo(const perf_sample& sample,
|
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/ |
D | event.h | 180 struct sample_event sample; member 194 struct perf_sample *sample, 215 struct perf_sample *sample, 219 struct perf_sample *sample, 223 struct perf_sample *sample, 227 struct perf_sample *sample, 231 struct perf_sample *sample, 235 struct perf_sample *sample, 239 struct perf_sample *sample, 246 struct perf_sample *sample); [all …]
|
D | build-id.h | 16 struct perf_sample *sample, struct perf_evsel *evsel,
|
/system/media/audio_utils/ |
D | channels.c | 24 static inline int32_t clamp24(int32_t sample) in clamp24() argument 26 if ((sample>>23) ^ (sample>>31)) { in clamp24() 27 sample = 0x007FFFFF ^ (sample>>31); in clamp24() 29 return sample; in clamp24()
|
/system/media/audio_utils/include/audio_utils/ |
D | primitives.h | 583 static inline int16_t clamp16(int32_t sample) in clamp16() argument 585 if ((sample>>15) ^ (sample>>31)) in clamp16() 586 sample = 0x7FFF ^ (sample>>31); in clamp16() 587 return sample; in clamp16()
|
/system/extras/perfprofd/quipper/kernel-headers/tools/perf/util/ |
D | event.h | 190 struct sample_event sample; member 200 …(struct perf_tool * tool, union perf_event * event, struct perf_sample * sample, struct machine * …
|
/system/extras/tests/mmc_tracepoints/ |
D | README | 24 The file mmc_trace_sample_data contains sample mmc trace data from a Nexus 10.
|
/system/core/init/test_service/ |
D | README.md | 2 This is a sample service that can be used for testing init.
|
/system/bt/embdrv/sbc/decoder/srce/ |
D | synthesis-dct8.c | 91 #define FLOAT_MULT_DCT(K, sample) (FIX(K, 20) * sample) in float_dct2_8() argument
|