summaryrefslogtreecommitdiffstats
path: root/tools/perf/tests/evsel-tp-sched.c
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@redhat.com>2013-07-12 16:29:06 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-07-17 17:34:53 +0200
commit8d76e1852794fac6ff0b538120d9856b0b07ef8a (patch)
tree0f713221ffda7e216c2f72da5171f2d5cdddb951 /tools/perf/tests/evsel-tp-sched.c
parentperf symbols: Do not apply symfs for an absolute vmlinux path (diff)
downloadlinux-8d76e1852794fac6ff0b538120d9856b0b07ef8a.tar.xz
linux-8d76e1852794fac6ff0b538120d9856b0b07ef8a.zip
perf tests: Check proper prev_state size for sched_switch tp
The prev_state is defined as long which is 4 bytes long on 32-bit x86. Changing the check against sizeof(long). Signed-off-by: Jiri Olsa <jolsa@redhat.com> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1373639346-4547-1-git-send-email-jolsa@redhat.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/tests/evsel-tp-sched.c')
-rw-r--r--tools/perf/tests/evsel-tp-sched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/tests/evsel-tp-sched.c b/tools/perf/tests/evsel-tp-sched.c
index f79e7d059820..9b98c1554833 100644
--- a/tools/perf/tests/evsel-tp-sched.c
+++ b/tools/perf/tests/evsel-tp-sched.c
@@ -49,7 +49,7 @@ int test__perf_evsel__tp_sched_test(void)
if (perf_evsel__test_field(evsel, "prev_prio", 4, true))
ret = -1;
- if (perf_evsel__test_field(evsel, "prev_state", 8, true))
+ if (perf_evsel__test_field(evsel, "prev_state", sizeof(long), true))
ret = -1;
if (perf_evsel__test_field(evsel, "next_comm", 16, true))