diff options
Diffstat (limited to 'tools/perf/tests/evsel-tp-sched.c')
-rw-r--r-- | tools/perf/tests/evsel-tp-sched.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/tests/evsel-tp-sched.c b/tools/perf/tests/evsel-tp-sched.c index a5d2fcc5ae35..9b98c1554833 100644 --- a/tools/perf/tests/evsel-tp-sched.c +++ b/tools/perf/tests/evsel-tp-sched.c | |||
@@ -1,6 +1,6 @@ | |||
1 | #include <traceevent/event-parse.h> | ||
1 | #include "evsel.h" | 2 | #include "evsel.h" |
2 | #include "tests.h" | 3 | #include "tests.h" |
3 | #include "event-parse.h" | ||
4 | 4 | ||
5 | static int perf_evsel__test_field(struct perf_evsel *evsel, const char *name, | 5 | static int perf_evsel__test_field(struct perf_evsel *evsel, const char *name, |
6 | int size, bool should_be_signed) | 6 | int size, bool should_be_signed) |
@@ -49,7 +49,7 @@ int test__perf_evsel__tp_sched_test(void) | |||
49 | if (perf_evsel__test_field(evsel, "prev_prio", 4, true)) | 49 | if (perf_evsel__test_field(evsel, "prev_prio", 4, true)) |
50 | ret = -1; | 50 | ret = -1; |
51 | 51 | ||
52 | if (perf_evsel__test_field(evsel, "prev_state", 8, true)) | 52 | if (perf_evsel__test_field(evsel, "prev_state", sizeof(long), true)) |
53 | ret = -1; | 53 | ret = -1; |
54 | 54 | ||
55 | if (perf_evsel__test_field(evsel, "next_comm", 16, true)) | 55 | if (perf_evsel__test_field(evsel, "next_comm", 16, true)) |