Hi,
I am having trouble getting track_event enabled as described in the Tracing SDK docs:
TLDR: Why is the track_event data source not being parsed/enabled from trace config file?
System:
Arm64 Yocto kirkstone based system (April 2024 era Kernel)
Perfetto binaries: built from main branch, and copied the key binaries to the system:
trace box, traced, traced_probes, perfetto
FTrace support configured in the kernel bps layer (didn't work following the Yocto tools-profile addition recommended :( )
Tracing SDK (perfetto.cc and perfetto.h from branch v50.1 as per the web page)
I followed the example on the webpage with CMake, it compiles and links with the Perfetto SDK.
I can run the example, and capture traces using the mentioned scheduling.cfg. I get a sensible trace with cpu usage, example process is shown running etc.
But I think that I am not getting the track_event data source enabled, it seems not even to be mentioned in the trace box logs, even when it does mention linux.ftrace and linux.process_stats for example.
I am simply adding this to the tests/configs/scheduling.cfg file at the end of the file:
data_sources {
config {
name: "track_event"
track_event_config {
enabled_categories: "rendering"
disabled_categories: "*"
}
}
}
Is there anything else I need to do to make that work? Does it need some specific events in /sys/kernel/tracing to be present for example, beyond those which already enable me to view e.g. cpu usage and thread state etc? I tried using wildcard '*' enable but made no difference. It seems as though its not recognising that data source when parsing the config file?
I am able to rebuild and modify the Perfetto trace box etc with additional instrumentation/logging etc to investigate it further if you need more information?
Thanks,
Andrew