diff options
Diffstat (limited to 'tools/perf/tests/attr.c')
-rw-r--r-- | tools/perf/tests/attr.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/perf/tests/attr.c b/tools/perf/tests/attr.c index 25638a986257..bdcceb886f77 100644 --- a/tools/perf/tests/attr.c +++ b/tools/perf/tests/attr.c | |||
@@ -19,6 +19,11 @@ | |||
19 | * permissions. All the event text files are stored there. | 19 | * permissions. All the event text files are stored there. |
20 | */ | 20 | */ |
21 | 21 | ||
22 | /* | ||
23 | * Powerpc needs __SANE_USERSPACE_TYPES__ before <linux/types.h> to select | ||
24 | * 'int-ll64.h' and avoid compile warnings when printing __u64 with %llu. | ||
25 | */ | ||
26 | #define __SANE_USERSPACE_TYPES__ | ||
22 | #include <stdlib.h> | 27 | #include <stdlib.h> |
23 | #include <stdio.h> | 28 | #include <stdio.h> |
24 | #include <inttypes.h> | 29 | #include <inttypes.h> |
@@ -33,8 +38,6 @@ | |||
33 | 38 | ||
34 | extern int verbose; | 39 | extern int verbose; |
35 | 40 | ||
36 | bool test_attr__enabled; | ||
37 | |||
38 | static char *dir; | 41 | static char *dir; |
39 | 42 | ||
40 | void test_attr__init(void) | 43 | void test_attr__init(void) |
@@ -146,7 +149,7 @@ static int run_dir(const char *d, const char *perf) | |||
146 | { | 149 | { |
147 | char cmd[3*PATH_MAX]; | 150 | char cmd[3*PATH_MAX]; |
148 | 151 | ||
149 | snprintf(cmd, 3*PATH_MAX, "python %s/attr.py -d %s/attr/ -p %s %s", | 152 | snprintf(cmd, 3*PATH_MAX, PYTHON " %s/attr.py -d %s/attr/ -p %s %s", |
150 | d, d, perf, verbose ? "-v" : ""); | 153 | d, d, perf, verbose ? "-v" : ""); |
151 | 154 | ||
152 | return system(cmd); | 155 | return system(cmd); |