On 2/22/23 15:32, Joseph, Jithu wrote: > On 2/22/2023 2:28 PM, Dave Hansen wrote: >> On 2/22/23 14:07, Joseph, Jithu wrote: >>> Since the trace has to be explicitly enabled (I thought it is okay to >>> add a more convenient custom one only to be enabled for detailed >>> analysis when required). >> man perf-script >> >> You should be able to write one to do exactly what you need in about 10 >> minutes. No new tracepoints, no new kernel code to maintain. Knock > Thanks for the pointers. I gather that user level tools might be able to format the > msr trace output in a more convenient way (perhaps as generated by the custom driver trace) > > There is still the other convenience of not having to look-up the > MSRs addresses corresponding to all the individual tests and setting the filter on them to > analyze IFS test activity (rather than enabling it via echo 1 > /sys/kernel/debug/tracing/events/intel_ifs/enable) Jithu, the perf-script tooling that I suggested wraps can abstract away the sysfs interface. I suspect you might also have discovered this in the process of exploring my (and others') suggestions. Please go invest some time there. Feel free to come back to this thread if you get stuck or have done your due diligence exhausted the userspace-only path.