Home
last modified time | relevance | path

Searched refs:ftrace (Results 1 – 25 of 192) sorted by relevance

12345678

/external/perfetto/src/traced/probes/ftrace/
Dftrace_config_muxer_unittest.cc247 NiceMock<MockFtraceProcfs> ftrace; in TEST_F() local
253 FtraceConfigMuxer model(&ftrace, fake_table.get(), GetSyscallTable(), {}); in TEST_F()
255 ON_CALL(ftrace, ReadFileIntoString("/root/trace_clock")) in TEST_F()
257 EXPECT_CALL(ftrace, ReadFileIntoString("/root/trace_clock")) in TEST_F()
259 EXPECT_CALL(ftrace, ReadFileIntoString("/root/current_tracer")) in TEST_F()
261 EXPECT_CALL(ftrace, ReadOneCharFromFile("/root/tracing_on")) in TEST_F()
263 EXPECT_CALL(ftrace, WriteToFile(_, _)).WillRepeatedly(Return(true)); in TEST_F()
264 EXPECT_CALL(ftrace, WriteToFile("/root/events/raw_syscalls/sys_enter/filter", in TEST_F()
266 EXPECT_CALL(ftrace, WriteToFile("/root/events/raw_syscalls/sys_exit/filter", in TEST_F()
279 NiceMock<MockFtraceProcfs> ftrace; in TEST_F() local
[all …]
Dftrace_procfs_unittest.cc47 MockFtraceProcfs ftrace; in TEST() local
49 EXPECT_CALL(ftrace, ReadFileIntoString("/root/trace_clock")) in TEST()
51 EXPECT_THAT(ftrace.AvailableClocks(), in TEST()
54 EXPECT_CALL(ftrace, ReadFileIntoString("/root/trace_clock")) in TEST()
56 EXPECT_THAT(ftrace.GetClock(), "local"); in TEST()
58 EXPECT_CALL(ftrace, ReadFileIntoString("/root/trace_clock")) in TEST()
60 EXPECT_THAT(ftrace.GetClock(), "global"); in TEST()
62 EXPECT_CALL(ftrace, ReadFileIntoString("/root/trace_clock")) in TEST()
64 EXPECT_THAT(ftrace.GetClock(), "boot"); in TEST()
66 EXPECT_CALL(ftrace, ReadFileIntoString("/root/trace_clock")) in TEST()
[all …]
Devent_info_constants.cc49 bool SetTranslationStrategy(FtraceFieldType ftrace, in SetTranslationStrategy() argument
52 if (ftrace == kFtraceCommonPid32 && proto == ProtoSchemaType::kInt32) { in SetTranslationStrategy()
54 } else if (ftrace == kFtraceCommonPid32 && proto == ProtoSchemaType::kInt64) { in SetTranslationStrategy()
56 } else if (ftrace == kFtraceInode32 && proto == ProtoSchemaType::kUint64) { in SetTranslationStrategy()
58 } else if (ftrace == kFtraceInode64 && proto == ProtoSchemaType::kUint64) { in SetTranslationStrategy()
60 } else if (ftrace == kFtracePid32 && proto == ProtoSchemaType::kInt32) { in SetTranslationStrategy()
62 } else if (ftrace == kFtracePid32 && proto == ProtoSchemaType::kInt64) { in SetTranslationStrategy()
64 } else if (ftrace == kFtraceDevId32 && proto == ProtoSchemaType::kUint64) { in SetTranslationStrategy()
66 } else if (ftrace == kFtraceDevId64 && proto == ProtoSchemaType::kUint64) { in SetTranslationStrategy()
68 } else if (ftrace == kFtraceUint8 && proto == ProtoSchemaType::kUint32) { in SetTranslationStrategy()
[all …]
DBUILD.gn32 ":ftrace",
49 ":ftrace",
58 "../../../../protos/perfetto/trace/ftrace:cpp",
59 "../../../../protos/perfetto/trace/ftrace:zero",
90 # These tests require access to a real ftrace implementation and must
95 ":ftrace",
106 source_set("ftrace") {
108 "../../../../protos/perfetto/config/ftrace:cpp",
109 "../../../../protos/perfetto/trace/ftrace:zero",
180 ":ftrace",
[all …]
Dvendor_tracepoints.cc40 FtraceProcfs* ftrace, in DiscoverTracepoints() argument
42 ftrace->DisableAllEvents(); in DiscoverTracepoints()
46 for (const std::string& group_name : ftrace->ReadEnabledEvents()) { in DiscoverTracepoints()
54 ftrace->DisableAllEvents(); in DiscoverTracepoints()
93 DiscoverVendorTracepointsWithHal(AtraceHalWrapper* hal, FtraceProcfs* ftrace) { in DiscoverVendorTracepointsWithHal() argument
96 results.emplace(category, DiscoverTracepoints(hal, ftrace, category)); in DiscoverVendorTracepointsWithHal()
151 FtraceProcfs* ftrace) { in DiscoverAccessibleVendorTracepointsWithFile() argument
162 [ftrace](const GroupAndName& event) { in DiscoverAccessibleVendorTracepointsWithFile()
163 return !ftrace->IsEventAccessible( in DiscoverAccessibleVendorTracepointsWithFile()
Dvendor_tracepoints_unittest.cc85 MockFtraceProcfs ftrace; in TEST() local
91 EXPECT_CALL(ftrace, WriteToFile("/root/events/enable", "0")) in TEST()
97 EXPECT_CALL(ftrace, ReadEnabledEvents()) in TEST()
101 EXPECT_CALL(ftrace, WriteToFile("/root/events/enable", "0")) in TEST()
105 EXPECT_THAT(DiscoverVendorTracepointsWithHal(&hal, &ftrace), in TEST()
263 MockFtraceProcfs ftrace; in TEST() local
265 EXPECT_CALL(ftrace, IsFileWriteable("/root/events/g/a/enable")) in TEST()
267 EXPECT_CALL(ftrace, IsFileWriteable("/root/events/g/b/enable")) in TEST()
269 EXPECT_CALL(ftrace, IsFileWriteable("/root/events/g/c/enable")) in TEST()
274 tree.AbsolutePath("vendor_atrace.txt"), &result, &ftrace); in TEST()
Dcpu_stats_parser.cc76 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()
Dproto_translation_table_unittest.cc157 MockFtraceProcfs ftrace; in TEST_P() local
161 ON_CALL(ftrace, ReadPageHeaderFormat()) in TEST_P()
168 ON_CALL(ftrace, ReadEventFormat(_, _)).WillByDefault(Return("")); in TEST_P()
169 ON_CALL(ftrace, ReadEventFormat("group", "foo")) in TEST_P()
183 EXPECT_CALL(ftrace, ReadPageHeaderFormat()).Times(AnyNumber()); in TEST_P()
184 EXPECT_CALL(ftrace, ReadEventFormat(_, _)).Times(AnyNumber()); in TEST_P()
238 auto table = ProtoTranslationTable::Create(&ftrace, std::move(events), in TEST_P()
387 MockFtraceProcfs ftrace; in TEST() local
416 &ftrace, events, std::move(common_fields), in TEST()
441 MockFtraceProcfs ftrace; in TEST() local
[all …]
/external/linux-kselftest/tools/testing/selftests/ftrace/test.d/direct/
Dftrace-direct.tc5 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 …]
Dkprobe-direct.tc6 rmmod ftrace-direct ||:
7 if ! modprobe ftrace-direct ; then
17 rmmod ftrace-direct
23 modprobe ftrace-direct
29 rmmod ftrace-direct
74 modprobe ftrace-direct-too
78 rmmod ftrace-direct-too
/external/perfetto/protos/perfetto/trace/ftrace/
Dftrace_event.proto23 import "protos/perfetto/trace/ftrace/android_fs.proto";
24 import "protos/perfetto/trace/ftrace/binder.proto";
25 import "protos/perfetto/trace/ftrace/block.proto";
26 import "protos/perfetto/trace/ftrace/cgroup.proto";
27 import "protos/perfetto/trace/ftrace/clk.proto";
28 import "protos/perfetto/trace/ftrace/cma.proto";
29 import "protos/perfetto/trace/ftrace/compaction.proto";
30 import "protos/perfetto/trace/ftrace/cpuhp.proto";
31 import "protos/perfetto/trace/ftrace/cros_ec.proto";
32 import "protos/perfetto/trace/ftrace/dma_fence.proto";
[all …]
Dftrace_event_bundle.proto19 import "protos/perfetto/trace/ftrace/ftrace_event.proto";
23 // The result of tracing one or more ftrace data pages from a single per-cpu
73 // timestamp for ftrace bundles; (2) "global" does not match CLOCK_MONOTONIC.
77 // This field is omitted when the ftrace clock is just "boot", as that is the
81 // The timestamp according to the ftrace clock, taken at the same instant
82 // as |boot_timestamp|. This is used to sync ftrace events when a non-boot
83 // clock is used as the ftrace clock. We don't use the ClockSnapshot packet
84 // because the ftrace global/local clocks don't match any of the clock_gettime
103 // the ftrace clock is "boot", it's just omitted (so UNSPECIFIED == BOOT).
/external/perfetto/src/perfetto_cmd/
Dconfig_unittest.cc146 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_TRUE(ftrace.symbolize_ksyms()); in TEST_F()
151 EXPECT_THAT(ftrace.atrace_categories(), Contains("sw")); in TEST_F()
152 EXPECT_THAT(ftrace.atrace_apps(), Contains("com.android.chrome")); in TEST_F()
163 protos::gen::FtraceConfig ftrace; in TEST_F() local
164 ASSERT_TRUE(ftrace.ParseFromString( in TEST_F()
166 EXPECT_THAT(ftrace.ftrace_events(), Contains("hyp/*")); in TEST_F()
167 ASSERT_EQ(ftrace.instance_name(), "hyp"); in TEST_F()
[all …]
/external/perfetto/
DAndroid.bp2887 "protos/perfetto/config/ftrace/ftrace_config.proto",
2916 // GN: //protos/perfetto/config/ftrace:cpp
2920 "protos/perfetto/config/ftrace/ftrace_config.proto",
2928 "external/perfetto/protos/perfetto/config/ftrace/ftrace_config.gen.cc",
2932 // GN: //protos/perfetto/config/ftrace:cpp
2936 "protos/perfetto/config/ftrace/ftrace_config.proto",
2944 "external/perfetto/protos/perfetto/config/ftrace/ftrace_config.gen.h",
2952 // GN: //protos/perfetto/config/ftrace:lite
2956 "protos/perfetto/config/ftrace/ftrace_config.proto",
2963 "external/perfetto/protos/perfetto/config/ftrace/ftrace_config.pb.cc",
[all …]
DBUILD1383 # GN target: //src/trace_processor/importers/ftrace:ftrace_descriptors
1387 "src/trace_processor/importers/ftrace/ftrace_descriptors.cc",
1388 "src/trace_processor/importers/ftrace/ftrace_descriptors.h",
1392 # GN target: //src/trace_processor/importers/ftrace:full
1396 "src/trace_processor/importers/ftrace/binder_tracker.cc",
1397 "src/trace_processor/importers/ftrace/binder_tracker.h",
1398 "src/trace_processor/importers/ftrace/drm_tracker.cc",
1399 "src/trace_processor/importers/ftrace/drm_tracker.h",
1400 "src/trace_processor/importers/ftrace/ftrace_module_impl.cc",
1401 "src/trace_processor/importers/ftrace/ftrace_module_impl.h",
[all …]
/external/perfetto/test/
Dsynth_common.py58 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/
Dsystem-log.md5 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/traced/probes/ftrace/test/data/android_hammerhead_MRA59G_3.4.0/
Davailable_events433 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/linux-kselftest/tools/testing/selftests/ftrace/test.d/trigger/
Dtrigger-trace-marker-synthetic.tc15 echo 'hist:keys=common_pid:ts0=common_timestamp.usecs if buf == "start"' > events/ftrace/print/trig…
16 …tamp.usecs-$ts0:onmatch(ftrace.print).latency($lat) if buf == "end"' >> events/ftrace/print/trigger
21 cnt=`grep 'hitcount: *1$' events/ftrace/print/hist | wc -l`
/external/perfetto/src/traced/probes/
DBUILD.gn20 # The unprivileged daemon that is allowed to access tracefs (for ftrace).
47 "ftrace",
48 "ftrace:ftrace_procfs",
54 "../../../protos/perfetto/config/ftrace:cpp",
109 "ftrace:unittests",
/external/perfetto/infra/oss-fuzz/
Dbuild_fuzzers28 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
/external/perfetto/test/configs/
DREADME.md5 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/libtraceevent/Documentation/
Dlibtraceevent-parse_event.txt48 buf = read_file("/sys/kernel/tracing/events/ftrace/print/format", &size);
49 if (tep_parse_event(tep, buf, size, "ftrace") != 0) {
50 /* Failed to parse the ftrace print format */
53 if (tep_parse_format(tep, &event, buf, size, "ftrace") != 0) {
54 /* Failed to parse the ftrace print format */
/external/perfetto/protos/perfetto/config/ftrace/
Dftrace_config.proto31 // recording the relevant ftrace events), specific high-volume events are
34 // If true, and sched_switch or sched_waking ftrace events are enabled,
40 // Optional filter for "ftrace/print" events.
58 // the "ftrace/print" "buf" field.
92 // to reduce ftrace's time-to-start-recording. Unfortunately that makes
124 // The list of syscalls that should be recorded by sys_{enter,exit} ftrace
139 // ftrace data source that does not use function graph itself, as we do not
152 // documentation on ftrace "set_ftrace_filter" file for more details.
168 // If true, does not clear ftrace buffers before the start of the program.
169 // This makes sense only if this is the first ftrace data source instance
[all …]
/external/linux-kselftest/
DAndroid.bp223 sub_dir: "linux-kselftest/ftrace",
224 src: "tools/testing/selftests/ftrace/ftracetest",
231 sub_dir: "linux-kselftest/ftrace/test.d",
232 src: "tools/testing/selftests/ftrace/test.d/functions",
239 sub_dir: "linux-kselftest/ftrace/test.d/00basic",
240 src: "tools/testing/selftests/ftrace/test.d/00basic/basic2.tc",
247 sub_dir: "linux-kselftest/ftrace/test.d/00basic",
248 src: "tools/testing/selftests/ftrace/test.d/00basic/basic4.tc",
255 sub_dir: "linux-kselftest/ftrace/test.d/00basic",
256 src: "tools/testing/selftests/ftrace/test.d/00basic/basic1.tc",
[all …]

12345678