/external/perfetto/src/trace_processor/importers/perf/ |
D | perf_event_attr.cc | 45 size_t CountSetFlags(uint64_t sample_type) { in CountSetFlags() argument 46 return static_cast<size_t>(PERFETTO_POPCOUNT(sample_type)); in CountSetFlags() 54 if (!attr.sample_id_all || !(attr.sample_type & PERF_SAMPLE_TIME)) { in TimeOffsetFromEndOfNonSampleRecord() 57 return CountSetFlags(attr.sample_type & kFlagsFromTimeToEnd) * kBytesPerField; in TimeOffsetFromEndOfNonSampleRecord() 64 if (!(attr.sample_type & PERF_SAMPLE_TIME)) { in TimeOffsetFromStartOfSampleRecord() 67 return CountSetFlags(attr.sample_type & kFlagsFromStartToTime) * in TimeOffsetFromStartOfSampleRecord() 77 if (attr.sample_type & PERF_SAMPLE_IDENTIFIER) { in IdOffsetFromStartOfSampleRecord() 81 if (attr.sample_type & PERF_SAMPLE_ID) { in IdOffsetFromStartOfSampleRecord() 82 return CountSetFlags(attr.sample_type & kFlagsFromStartToId) * in IdOffsetFromStartOfSampleRecord() 94 if (attr.sample_type & PERF_SAMPLE_IDENTIFIER) { in IdOffsetFromEndOfNonSampleRecord() [all …]
|
D | perf_session_unittest.cc | 58 attr.sample_type = PERF_SAMPLE_CALLCHAIN | PERF_SAMPLE_CPU | PERF_SAMPLE_TIME; in TEST() 75 attr.sample_type = PERF_SAMPLE_CALLCHAIN | PERF_SAMPLE_CPU | PERF_SAMPLE_TIME; in TEST() 87 attr.sample_type = PERF_SAMPLE_IP | PERF_SAMPLE_CPU | PERF_SAMPLE_TIME; in TEST() 98 EXPECT_THAT((*attr_ptr)->sample_type(), Eq(attr.sample_type)); in TEST() 104 EXPECT_THAT((*attr_ptr)->sample_type(), Eq(attr.sample_type)); in TEST() 113 attr.sample_type = PERF_SAMPLE_IDENTIFIER; in TEST() 131 attr.sample_type = PERF_SAMPLE_IP | PERF_SAMPLE_ID; in TEST() 133 attr.sample_type |= PERF_SAMPLE_TID; in TEST() 144 attr.sample_type = PERF_SAMPLE_ID | PERF_SAMPLE_TID; in TEST() 151 attr.sample_type |= PERF_SAMPLE_IDENTIFIER; in TEST() [all …]
|
D | sample.cc | 162 const uint64_t sample_type = record.attr->sample_type(); in Parse() local 172 if (sample_type & PERF_SAMPLE_IDENTIFIER) { in Parse() 178 if (sample_type & PERF_SAMPLE_IP) { in Parse() 184 if (sample_type & PERF_SAMPLE_TID) { in Parse() 190 if (sample_type & PERF_SAMPLE_TIME) { in Parse() 196 if (sample_type & PERF_SAMPLE_ADDR) { in Parse() 202 if (sample_type & PERF_SAMPLE_ID) { in Parse() 216 if (sample_type & PERF_SAMPLE_STREAM_ID) { in Parse() 222 if (sample_type & PERF_SAMPLE_CPU) { in Parse() 233 if (sample_type & PERF_SAMPLE_PERIOD) { in Parse() [all …]
|
D | perf_event_attr.h | 49 uint64_t sample_type() const { return attr_.sample_type; } in sample_type() function
|
/external/perfetto/src/tools/protoprofile/ |
D | main.cc | 99 auto* sample_type = profile->add_sample_type(); in Compute() local 100 sample_type->set_type(InternString("protos")); in Compute() 101 sample_type->set_unit(InternString("count")); in Compute() 103 sample_type = profile->add_sample_type(); in Compute() 104 sample_type->set_type(InternString("max_size")); in Compute() 105 sample_type->set_unit(InternString("bytes")); in Compute() 107 sample_type = profile->add_sample_type(); in Compute() 108 sample_type->set_type(InternString("min_size")); in Compute() 109 sample_type->set_unit(InternString("bytes")); in Compute() 111 sample_type = profile->add_sample_type(); in Compute() [all …]
|
/external/tensorflow/tensorflow/python/profiler/ |
D | pprof_profiler.py | 343 sample_type = pprof_profile.sample_type.add() 344 sample_type.type = self._string_table.index_of(sample_type_description) 345 sample_type.unit = self._string_table.index_of('count') 347 sample_type = pprof_profile.sample_type.add() 348 sample_type.type = self._string_table.index_of(sample_type_description) 349 sample_type.unit = self._string_table.index_of('nanoseconds') 351 sample_type = pprof_profile.sample_type.add() 352 sample_type.type = self._string_table.index_of(sample_type_description) 353 sample_type.unit = self._string_table.index_of('nanoseconds')
|
/external/perfetto/src/traceconv/ |
D | pprof_reader.cc | 157 std::find_if(profile_.sample_type().begin(), profile_.sample_type().end(), in get_sample_value_index() 158 [value_name_string_index](const auto& sample_type) { in get_sample_value_index() argument 159 return sample_type.type() == value_name_string_index; in get_sample_value_index() 162 if (it != profile_.sample_type().end()) { in get_sample_value_index() 164 std::distance(profile_.sample_type().begin(), it)); in get_sample_value_index()
|
/external/perfetto/src/profiling/perf/ |
D | event_config_unittest.cc | 248 EXPECT_EQ(event_config->perf_attr()->sample_type & in TEST() 263 EXPECT_EQ(event_config->perf_attr()->sample_type & in TEST() 283 EXPECT_EQ(event_config->perf_attr()->sample_type, 0u); in TEST() 303 EXPECT_EQ(event_config->perf_attr()->sample_type, 0u); in TEST() 328 event_config->perf_attr()->sample_type & in TEST() 347 EXPECT_EQ(event_config->perf_attr()->sample_type & in TEST() 350 EXPECT_EQ(event_config->perf_attr()->sample_type & (PERF_SAMPLE_CALLCHAIN), in TEST() 455 EXPECT_EQ(event_config->perf_attr()->sample_type & in TEST() 465 EXPECT_TRUE(raw_event.sample_type & PERF_SAMPLE_READ); in TEST() 470 EXPECT_TRUE(hw_counter.sample_type & PERF_SAMPLE_READ); in TEST() [all …]
|
D | event_reader.cc | 387 if (event_attr_.sample_type & in ParseSampleRecord() 405 if (event_attr_.sample_type & PERF_SAMPLE_TID) { in ParseSampleRecord() 414 if (event_attr_.sample_type & PERF_SAMPLE_TIME) { in ParseSampleRecord() 418 if (event_attr_.sample_type & PERF_SAMPLE_READ) { in ParseSampleRecord() 438 if (event_attr_.sample_type & PERF_SAMPLE_CALLCHAIN) { in ParseSampleRecord() 446 if (event_attr_.sample_type & PERF_SAMPLE_REGS_USER) { in ParseSampleRecord() 451 if (event_attr_.sample_type & PERF_SAMPLE_STACK_USER) { in ParseSampleRecord()
|
D | event_config.cc | 419 pe_follower.sample_type = pe.sample_type; in CreatePolling() 561 pe.sample_type = PERF_SAMPLE_TID | PERF_SAMPLE_TIME | PERF_SAMPLE_READ; in CreateSampling() 567 pe.sample_type |= PERF_SAMPLE_STACK_USER | PERF_SAMPLE_REGS_USER; in CreateSampling() 579 pe.sample_type |= PERF_SAMPLE_CALLCHAIN; in CreateSampling() 600 pe_follower.sample_type = pe.sample_type; in CreateSampling()
|
/external/bcc/tests/python/ |
D | test_attach_perf_event.py | 57 event_attr.sample_type = PerfEventSampleFormat.ADDR 102 event_attr.sample_type = PerfEventSampleFormat.ADDR 148 event_attr.sample_type = PerfEventSampleFormat.ADDR
|
/external/tensorflow/tensorflow/core/profiler/internal/ |
D | tfprof_code.cc | 320 auto sample_type = profile_pb->mutable_sample_type()->Add(); in Build() local 321 sample_type->set_type(string_table_.GetIndex(sample_type_description)); in Build() 322 sample_type->set_unit(string_table_.GetIndex("count")); in Build() 326 sample_type = profile_pb->mutable_sample_type()->Add(); in Build() 327 sample_type->set_type(string_table_.GetIndex(sample_type_description)); in Build() 329 sample_type->set_unit(string_table_.GetIndex("microseconds")); in Build() 341 sample_type->set_unit(string_table_.GetIndex("bytes")); in Build() 346 sample_type->set_unit(string_table_.GetIndex("bytes")); in Build() 350 sample_type->set_unit(string_table_.GetIndex("bytes")); in Build() 354 sample_type->set_unit(string_table_.GetIndex("bytes")); in Build() [all …]
|
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/ |
D | get_stackid_cannot_attach.c | 13 .sample_type = PERF_SAMPLE_IP | PERF_SAMPLE_BRANCH_STACK, in test_get_stackid_cannot_attach() 55 attr.sample_type |= PERF_SAMPLE_CALLCHAIN; in test_get_stackid_cannot_attach()
|
/external/perfetto/docs/analysis/ |
D | builtin.md | 71 `EXPERIMENTAL_PROFILE(stack [,sample_type, sample_units, sample_value]*)` 87 sample_type | STRING | Type of the sample value (e.g. size, time) 94 used as defaults for `sample_type`, `sample_units`, and `sample_value`
|
/external/iamf_tools/iamf/api/decoder/ |
D | iamf_decoder.cc | 147 size_t BytesPerSample(OutputSampleType sample_type) { in BytesPerSample() argument 148 switch (sample_type) { in BytesPerSample() 159 OutputSampleType sample_type, in WriteFrameToSpan() argument 162 const size_t bytes_per_sample = BytesPerSample(sample_type); in WriteFrameToSpan()
|
/external/strace/ |
D | perf.c | 254 PRINT_FIELD_FLAGS(", ", *attr, sample_type, perf_event_sample_format, in print_perf_event_attr() 357 if (attr->sample_type & PERF_SAMPLE_BRANCH_STACK) { in print_perf_event_attr() 377 if (attr->sample_type & PERF_SAMPLE_STACK_USER) in print_perf_event_attr()
|
/external/strace/tests-mx32/ |
D | perf_event_open.c | 147 const char *type, const char *config, const char *sample_type, in print_event_attr() argument 223 sample_type, read_format); in print_event_attr() 410 if (attr->sample_type & (1 << 11)) in print_event_attr() 442 if (attr->sample_type & (1 << 13)) in print_event_attr() 759 attr->sample_type = sample_types[sample_type_idx].val; in main()
|
/external/strace/tests-m32/ |
D | perf_event_open.c | 147 const char *type, const char *config, const char *sample_type, in print_event_attr() argument 223 sample_type, read_format); in print_event_attr() 410 if (attr->sample_type & (1 << 11)) in print_event_attr() 442 if (attr->sample_type & (1 << 13)) in print_event_attr() 759 attr->sample_type = sample_types[sample_type_idx].val; in main()
|
/external/strace/tests/ |
D | perf_event_open.c | 147 const char *type, const char *config, const char *sample_type, in print_event_attr() argument 223 sample_type, read_format); in print_event_attr() 410 if (attr->sample_type & (1 << 11)) in print_event_attr() 442 if (attr->sample_type & (1 << 13)) in print_event_attr() 759 attr->sample_type = sample_types[sample_type_idx].val; in main()
|
/external/linux-kselftest/tools/testing/selftests/powerpc/pmu/sampling_tests/ |
D | intr_regs_no_crash_wo_pmu_test.c | 40 event.attr.sample_type = PERF_SAMPLE_REGS_INTR; in intr_regs_no_crash_wo_pmu_test()
|
D | bhrb_no_crash_wo_pmu_test.c | 41 event.attr.sample_type = PERF_SAMPLE_BRANCH_STACK; in bhrb_no_crash_wo_pmu_test()
|
D | mmcra_bhrb_disable_test.c | 37 event.attr.sample_type |= PERF_SAMPLE_BRANCH_STACK; in mmcra_bhrb_disable_test()
|
D | mmcra_bhrb_ind_call_test.c | 40 event.attr.sample_type |= PERF_SAMPLE_BRANCH_STACK; in mmcra_bhrb_ind_call_test()
|
D | mmcra_bhrb_any_test.c | 36 event.attr.sample_type |= PERF_SAMPLE_BRANCH_STACK; in mmcra_bhrb_any_test()
|
D | mmcra_bhrb_cond_test.c | 40 event.attr.sample_type |= PERF_SAMPLE_BRANCH_STACK; in mmcra_bhrb_cond_test()
|