Skip to content
Commit 8753b2f5 authored by Beata Michalska's avatar Beata Michalska
Browse files

lisa._assets.kmodules.sched_tp: Add support for ARM PMU counters



FEATURE

Add support for tracing ARM PMU event counters by providing a dedicated
'perf_counter' trace event, associated with the sched_switch one.

The counters to be traced can be specified through module parameter,
as a list of comma-separated values denoting either names of generic
perf events or raw PMU counter ids, e.g.:

	insmod /data/local/sched_tp.ko features=event__perf_counter\
		generic_perf_events=cpu_cycles,inst_retired \
		pmu_raw_counters=35,36

The counters themselves will get activated on each online core at the
time of activation, with currently no support for hotplug.

The 'counter_id' filed of the 'perf_counter' trace event always represents
the PMU RAW counter id.

Signed-off-by: Beata Michalska's avatarBeata Michalska <beata.michalska@arm.com>
parent 53a82c94
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment