/external/perfetto/src/traced/probes/ftrace/ |
D | ftrace_procfs_unittest.cc | 42 MockFtraceProcfs ftrace; in TEST() local 44 EXPECT_CALL(ftrace, ReadFileIntoString("/root/trace_clock")) in TEST() 46 EXPECT_THAT(ftrace.AvailableClocks(), in TEST() 49 EXPECT_CALL(ftrace, ReadFileIntoString("/root/trace_clock")) in TEST() 51 EXPECT_THAT(ftrace.GetClock(), "local"); in TEST() 53 EXPECT_CALL(ftrace, ReadFileIntoString("/root/trace_clock")) in TEST() 55 EXPECT_THAT(ftrace.GetClock(), "global"); in TEST() 57 EXPECT_CALL(ftrace, ReadFileIntoString("/root/trace_clock")) in TEST() 59 EXPECT_THAT(ftrace.GetClock(), "boot"); in TEST() 61 EXPECT_CALL(ftrace, ReadFileIntoString("/root/trace_clock")) in TEST() [all …]
|
D | event_info_constants.cc | 42 bool SetTranslationStrategy(FtraceFieldType ftrace, in SetTranslationStrategy() argument 45 if (ftrace == kFtraceCommonPid32 && proto == ProtoSchemaType::kInt32) { in SetTranslationStrategy() 47 } else if (ftrace == kFtraceCommonPid32 && proto == ProtoSchemaType::kInt64) { in SetTranslationStrategy() 49 } else if (ftrace == kFtraceInode32 && proto == ProtoSchemaType::kUint64) { in SetTranslationStrategy() 51 } else if (ftrace == kFtraceInode64 && proto == ProtoSchemaType::kUint64) { in SetTranslationStrategy() 53 } else if (ftrace == kFtracePid32 && proto == ProtoSchemaType::kInt32) { in SetTranslationStrategy() 55 } else if (ftrace == kFtracePid32 && proto == ProtoSchemaType::kInt64) { in SetTranslationStrategy() 57 } else if (ftrace == kFtraceDevId32 && proto == ProtoSchemaType::kUint64) { in SetTranslationStrategy() 59 } else if (ftrace == kFtraceDevId64 && proto == ProtoSchemaType::kUint64) { in SetTranslationStrategy() 61 } else if (ftrace == kFtraceUint8 && proto == ProtoSchemaType::kUint32) { in SetTranslationStrategy() [all …]
|
D | ftrace_config_muxer_unittest.cc | 197 MockFtraceProcfs ftrace; in TEST_F() local 201 FtraceConfigMuxer model(&ftrace, mock_table.get(), {}); in TEST_F() 203 ON_CALL(ftrace, ReadFileIntoString("/root/trace_clock")) in TEST_F() 205 EXPECT_CALL(ftrace, ReadFileIntoString("/root/trace_clock")) in TEST_F() 208 EXPECT_CALL(ftrace, ReadOneCharFromFile("/root/tracing_on")) in TEST_F() 211 EXPECT_CALL(ftrace, WriteToFile("/root/buffer_size_kb", _)); in TEST_F() 212 EXPECT_CALL(ftrace, WriteToFile("/root/trace_clock", "boot")); in TEST_F() 213 EXPECT_CALL(ftrace, WriteToFile("/root/tracing_on", "1")); in TEST_F() 214 EXPECT_CALL(ftrace, in TEST_F() 244 NiceMock<MockFtraceProcfs> ftrace; in TEST_F() local [all …]
|
D | discover_vendor_tracepoints.cc | 27 FtraceProcfs* ftrace, in DiscoverTracepoints() argument 29 ftrace->DisableAllEvents(); in DiscoverTracepoints() 33 for (const std::string& group_name : ftrace->ReadEnabledEvents()) { in DiscoverTracepoints() 41 ftrace->DisableAllEvents(); in DiscoverTracepoints() 47 FtraceProcfs* ftrace) { in DiscoverVendorTracepoints() argument 50 results.emplace(category, DiscoverTracepoints(hal, ftrace, category)); in DiscoverVendorTracepoints()
|
D | BUILD.gn | 32 ":ftrace", 49 ":ftrace", 58 "../../../../protos/perfetto/trace/ftrace:cpp", 59 "../../../../protos/perfetto/trace/ftrace:zero", 89 # These tests require access to a real ftrace implementation and must 94 ":ftrace", 105 source_set("ftrace") { 107 "../../../../protos/perfetto/config/ftrace:cpp", 108 "../../../../protos/perfetto/trace/ftrace:zero", 175 ":ftrace", [all …]
|
D | discover_vendor_tracepoints_unittest.cc | 70 MockFtraceProcfs ftrace; in TEST() local 73 EXPECT_CALL(ftrace, WriteToFile("/root/events/enable", "0")) in TEST() 79 EXPECT_CALL(ftrace, ReadEnabledEvents()) in TEST() 83 EXPECT_CALL(ftrace, WriteToFile("/root/events/enable", "0")) in TEST() 87 EXPECT_THAT(DiscoverTracepoints(&hal, &ftrace, "gfx"), in TEST()
|
D | proto_translation_table_unittest.cc | 153 MockFtraceProcfs ftrace; in TEST_P() local 157 ON_CALL(ftrace, ReadPageHeaderFormat()) in TEST_P() 164 ON_CALL(ftrace, ReadEventFormat(_, _)).WillByDefault(Return("")); in TEST_P() 165 ON_CALL(ftrace, ReadEventFormat("group", "foo")) in TEST_P() 179 EXPECT_CALL(ftrace, ReadPageHeaderFormat()).Times(AnyNumber()); in TEST_P() 180 EXPECT_CALL(ftrace, ReadEventFormat(_, _)).Times(AnyNumber()); in TEST_P() 234 auto table = ProtoTranslationTable::Create(&ftrace, std::move(events), in TEST_P() 369 MockFtraceProcfs ftrace; in TEST() local 398 &ftrace, events, std::move(common_fields), in TEST() 423 MockFtraceProcfs ftrace; in TEST() local [all …]
|
D | cpu_stats_parser.cc | 76 bool DumpAllCpuStats(FtraceProcfs* ftrace, FtraceStats* stats) { in DumpAllCpuStats() argument 77 stats->cpu_stats.resize(ftrace->NumberOfCpus(), {}); in DumpAllCpuStats() 78 for (size_t cpu = 0; cpu < ftrace->NumberOfCpus(); cpu++) { in DumpAllCpuStats() 80 if (!DumpCpuStats(ftrace->ReadCpuStats(cpu), &stats->cpu_stats[cpu])) in DumpAllCpuStats()
|
/external/linux-kselftest/tools/testing/selftests/ftrace/test.d/direct/ |
D | ftrace-direct.tc | 5 rmmod ftrace-direct ||: 6 if ! modprobe ftrace-direct ; then 16 rmmod ftrace-direct 23 modprobe ftrace-direct 24 rmmod ftrace-direct 29 modprobe ftrace-direct 31 rmmod ftrace-direct 34 modprobe ftrace-direct 37 rmmod ftrace-direct 40 modprobe ftrace-direct [all …]
|
D | kprobe-direct.tc | 5 rmmod ftrace-direct ||: 6 if ! modprobe ftrace-direct ; then 21 rmmod ftrace-direct 27 modprobe ftrace-direct 33 rmmod ftrace-direct 78 modprobe ftrace-direct-too 82 rmmod ftrace-direct-too
|
/external/perfetto/protos/perfetto/trace/ftrace/ |
D | ftrace_event.proto | 23 import "protos/perfetto/trace/ftrace/binder.proto"; 24 import "protos/perfetto/trace/ftrace/block.proto"; 25 import "protos/perfetto/trace/ftrace/cgroup.proto"; 26 import "protos/perfetto/trace/ftrace/clk.proto"; 27 import "protos/perfetto/trace/ftrace/compaction.proto"; 28 import "protos/perfetto/trace/ftrace/cpuhp.proto"; 29 import "protos/perfetto/trace/ftrace/dmabuf_heap.proto"; 30 import "protos/perfetto/trace/ftrace/dpu.proto"; 31 import "protos/perfetto/trace/ftrace/ext4.proto"; 32 import "protos/perfetto/trace/ftrace/f2fs.proto"; [all …]
|
/external/linux-kselftest/tools/testing/selftests/ftrace/test.d/trigger/ |
D | trigger-trace-marker-synthetic.tc | 21 if [ ! -d events/ftrace/print ]; then 26 if [ ! -f events/ftrace/print/trigger ]; then 31 if [ ! -f events/ftrace/print/hist ]; then 39 echo 'hist:keys=common_pid:ts0=common_timestamp.usecs if buf == "start"' > events/ftrace/print/trig… 40 …tamp.usecs-$ts0:onmatch(ftrace.print).latency($lat) if buf == "end"' >> events/ftrace/print/trigger 45 cnt=`grep 'hitcount: *1$' events/ftrace/print/hist | wc -l`
|
D | trigger-trace-marker-hist.tc | 16 if [ ! -d events/ftrace/print ]; then 21 if [ ! -f events/ftrace/print/trigger ]; then 26 if [ ! -f events/ftrace/print/hist ]; then 33 echo 'hist:keys=common_pid' > events/ftrace/print/trigger 35 grep 'hitcount: *10$' events/ftrace/print/hist > /dev/null || \
|
D | trigger-trace-marker-synthetic-kernel.tc | 21 if [ ! -d events/ftrace/print ]; then 31 if [ ! -f events/ftrace/print/trigger ]; then 36 if [ ! -f events/ftrace/print/hist ]; then 45 …ommon_timestamp.usecs-$ts0:onmatch(sched.sched_waking).latency($lat)' > events/ftrace/print/trigger 50 grep 'hitcount: *1$' events/ftrace/print/hist > /dev/null || \
|
D | trigger-trace-marker-snapshot.tc | 21 if [ ! -d events/ftrace/print ]; then 26 if [ ! -f events/ftrace/print/trigger ]; then 51 echo 'snapshot' > events/ftrace/print/trigger
|
/external/perfetto/ |
D | Android.bp | 2388 "protos/perfetto/config/ftrace/ftrace_config.proto", 2414 // GN: //protos/perfetto/config/ftrace:cpp 2418 "protos/perfetto/config/ftrace/ftrace_config.proto", 2426 "external/perfetto/protos/perfetto/config/ftrace/ftrace_config.gen.cc", 2430 // GN: //protos/perfetto/config/ftrace:cpp 2434 "protos/perfetto/config/ftrace/ftrace_config.proto", 2442 "external/perfetto/protos/perfetto/config/ftrace/ftrace_config.gen.h", 2450 // GN: //protos/perfetto/config/ftrace:lite 2454 "protos/perfetto/config/ftrace/ftrace_config.proto", 2461 "external/perfetto/protos/perfetto/config/ftrace/ftrace_config.pb.cc", [all …]
|
D | BUILD | 1184 "src/trace_processor/importers/ftrace/ftrace_descriptors.cc", 1185 "src/trace_processor/importers/ftrace/ftrace_descriptors.h", 1237 "src/trace_processor/importers/ftrace/binder_tracker.cc", 1238 "src/trace_processor/importers/ftrace/binder_tracker.h", 1239 "src/trace_processor/importers/ftrace/ftrace_module_impl.cc", 1240 "src/trace_processor/importers/ftrace/ftrace_module_impl.h", 1241 "src/trace_processor/importers/ftrace/ftrace_parser.cc", 1242 "src/trace_processor/importers/ftrace/ftrace_parser.h", 1243 "src/trace_processor/importers/ftrace/ftrace_tokenizer.cc", 1244 "src/trace_processor/importers/ftrace/ftrace_tokenizer.h", [all …]
|
/external/perfetto/test/ |
D | synth_common.py | 58 ftrace = self.packet.ftrace_events.event.add() 59 ftrace.timestamp = ts 60 ftrace.pid = tid 61 return ftrace 64 ftrace = self.__add_ftrace_event(ts, tid) 65 rss_stat = ftrace.rss_stat 74 ftrace = self.__add_ftrace_event(ts, tid) 75 ion = ftrace.ion_heap_grow 81 ftrace = self.__add_ftrace_event(ts, pid) 82 oom_score = ftrace.oom_score_adj_update [all …]
|
/external/perfetto/docs/data-sources/ |
D | system-log.md | 5 The following ftrace events need to added to the trace config to collect syscalls. 10 name: "linux.ftrace" 20 …rates with [Linux kernel event tracing](https://www.kernel.org/doc/Documentation/trace/ftrace.txt). 27 name: "linux.ftrace" 29 ftrace_events: "ftrace/print" 38 The full configuration options for ftrace can be seen in [ftrace_config.proto](/protos/perfetto/con… 83 name: "linux.ftrace"
|
/external/perfetto/src/trace_processor/ |
D | BUILD.gn | 59 "importers/ftrace/ftrace_descriptors.cc", 60 "importers/ftrace/ftrace_descriptors.h", 75 "importers/ftrace/ftrace_module.cc", 76 "importers/ftrace/ftrace_module.h", 166 "../../protos/perfetto/trace/ftrace:zero", 192 "importers/ftrace/binder_tracker.cc", 193 "importers/ftrace/binder_tracker.h", 194 "importers/ftrace/ftrace_module_impl.cc", 195 "importers/ftrace/ftrace_module_impl.h", 196 "importers/ftrace/ftrace_parser.cc", [all …]
|
/external/autotest/client/tests/tracing_microbenchmark/ |
D | control | 9 A simple benchmark of kernel tracers such as ftrace. Enables tracepoints in 18 ftrace: syscalls:sys_enter_getuid 28 job.run_test('tracing_microbenchmark', tracer='ftrace', tag='ftrace', iterations=10)
|
/external/perfetto/src/traced/probes/ftrace/test/data/android_hammerhead_MRA59G_3.4.0/ |
D | available_events | 433 ftrace:bprint 434 ftrace:user_stack 435 ftrace:kernel_stack 436 ftrace:mmiotrace_rw 437 ftrace:funcgraph_entry 438 ftrace:print 439 ftrace:mmiotrace_map 440 ftrace:branch 441 ftrace:function 442 ftrace:wakeup [all …]
|
/external/perfetto/src/perfetto_cmd/ |
D | config_unittest.cc | 146 protos::gen::FtraceConfig ftrace; in TEST_F() local 147 ASSERT_TRUE(ftrace.ParseFromString( in TEST_F() 149 EXPECT_THAT(ftrace.ftrace_events(), Contains("sched/sched_switch")); in TEST_F() 150 EXPECT_THAT(ftrace.atrace_categories(), Contains("sw")); in TEST_F() 151 EXPECT_THAT(ftrace.atrace_apps(), Contains("com.android.chrome")); in TEST_F()
|
/external/perfetto/test/configs/ |
D | README.md | 5 build time. For example the file `ftrace.cfg` is serialized to 6 `out/some_gn_config/ftrace.cfg.protobuf`. 11 $ adb push out/some_gn_config/ftrace.cfg.protobuf /data/local/tmp
|
/external/perfetto/infra/oss-fuzz/ |
D | build_fuzzers | 28 mkdir -p $OUT/src/traced/probes/ftrace/test/data 29 cp -a $SRC/perfetto/src/traced/probes/ftrace/test/data/synthetic \ 30 $OUT/src/traced/probes/ftrace/test/data
|