aboutsummaryrefslogtreecommitdiff
path: root/tests/trace_sched.txt
diff options
context:
space:
mode:
authorPatrick Bellasi <patrick.bellasi@arm.com>2016-02-03 16:14:11 +0000
committerPatrick Bellasi <patrick.bellasi@arm.com>2016-02-03 16:14:11 +0000
commit6234247df896fed6791bf18db042e4ff53c5b72c (patch)
treed37b146173c166e01d121a7ece59ad2da411d25a /tests/trace_sched.txt
parent3b09be5ee527d09390f793c32c304243114ff024 (diff)
downloadtrappy-6234247df896fed6791bf18db042e4ff53c5b72c.tar.gz
sched: add classes for wakeup/wakeup_new events
Some recent version of trace-cmd prints sched_wakeup and sched_wakeup_new events using a format string. Thus, when this events are required we must parse them from the raw trace. Since these events are already available mainline, this patch pre-register them dynamically as raw events. This allows to parse these events (when required) using the proper trace. The patch adds also a test case by using the original formatted trace as a source for the raw trace to use. Signed-off-by: Patrick Bellasi <patrick.bellasi@arm.com>
Diffstat (limited to 'tests/trace_sched.txt')
-rw-r--r--tests/trace_sched.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/trace_sched.txt b/tests/trace_sched.txt
index 14976d6..a0b4081 100644
--- a/tests/trace_sched.txt
+++ b/tests/trace_sched.txt
@@ -4,6 +4,10 @@ cpus=6
trace-cmd-2971 [004] 6550.018512: sched_load_avg_task: comm=sshd pid=2962 load=0 utilization=0 runnable_avg_sum=0 running_avg_sum=0 avg_period=48595
sshd-2962 [000] 6550.018513: sched_load_avg_cpu: cpu=0 load=13 utilization=18
sshd-2962 [000] 6550.018514: dynamic_test_key: cpu=0 load=13 utilization=18
+ <...>-19427 [000] 6550.018664: sched_wakeup_new: comm=shutils pid=19428 prio=120 success=1 target_cpu=2
<idle>-0 [000] 6550.018679: sched_contrib_scale_f: cpu=0 freq_scale_factor=426 cpu_scale_factor=1024
trace-cmd-3519 [003] 6550.018805: sched_cpu_capacity: cpu=3 capacity=430 rt_capacity=1024
kworker/0:0-3410 [000] 6550.056870: cpu_frequency: state=600000 cpu_id=0
+ <idle>-0 [001] 6550.100000: sched_wakeup: comm=rcu_preempt pid=7 prio=120 success=1 target_cpu=1
+ <...>-19427 [000] 6551.993884: sched_wakeup_new: comm=shutils pid=19428 prio=120 success=1 target_cpu=2
+ <idle>-0 [001] 6552.000002: sched_wakeup: comm=rcu_preempt pid=7 prio=120 success=1 target_cpu=1