aboutsummaryrefslogtreecommitdiff
path: root/tests/test_base.py
diff options
context:
space:
mode:
authorJavi Merino <javi.merino@arm.com>2015-03-27 19:52:13 +0000
committerJavi Merino <javi.merino@arm.com>2015-08-12 16:03:46 +0100
commitaf26671e7b10327ee18b7d7c561ad08352133e4d (patch)
tree5bfef1f80182a14b3ce3d5c46ca19f14b60e4d8d /tests/test_base.py
parent0302ef7bb42d5d5e77a5e0c55e780b0d439591d3 (diff)
downloadtrappy-af26671e7b10327ee18b7d7c561ad08352133e4d.tar.gz
run: parse the special fields of a trace
Ftrace collects the current program, the pid and the cpu when any trace event is generated. Add that information to every event in every class as it's present and can be valuable. Change-Id: I63a615ae8e303d80b83cb490026109d319e79018
Diffstat (limited to 'tests/test_base.py')
-rw-r--r--tests/test_base.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_base.py b/tests/test_base.py
index 4397dfc..68c003a 100644
--- a/tests/test_base.py
+++ b/tests/test_base.py
@@ -70,7 +70,8 @@ class TestBase(utils_tests.SetupDirectory):
in_data = """ kworker/4:1-397 [004] 720.741315: thermal_power_cpu_get: cpus=000000f0 freq=1900000 raw_cpu_power=1259 load={} power=61
kworker/4:1-397 [004] 720.741349: thermal_power_cpu_get: cpus=0000000f freq=1400000 raw_cpu_power=189 load={} power=14"""
- expected_columns = set(["cpus", "freq", "raw_cpu_power", "power"])
+ expected_columns = set(["__comm", "__pid", "__cpu", "cpus", "freq",
+ "raw_cpu_power", "power"])
with open("trace.txt", "w") as fout:
fout.write(in_data)
@@ -86,7 +87,7 @@ class TestBase(utils_tests.SetupDirectory):
in_data = """ rcu_preempt-7 [000] 73.604532: sched_stat_runtime: comm=Space separated taskname pid=7 runtime=262875 [ns] vruntime=17096359856 [ns]"""
- expected_columns = set(["comm", "pid", "runtime", "vruntime"])
+ expected_columns = set(["__comm", "__pid", "__cpu", "comm", "pid", "runtime", "vruntime"])
with open("trace.txt", "w") as fout:
fout.write(in_data)