aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util')
-rw-r--r--tools/perf/util/event.h7
-rw-r--r--tools/perf/util/python.c4
2 files changed, 2 insertions, 9 deletions
diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h
index 008a2839d667..40020f5b0484 100644
--- a/tools/perf/util/event.h
+++ b/tools/perf/util/event.h
@@ -27,13 +27,6 @@
27#define PRI_lx64 PRIx64 27#define PRI_lx64 PRIx64
28#endif 28#endif
29 29
30struct throttle_event {
31 struct perf_event_header header;
32 u64 time;
33 u64 id;
34 u64 stream_id;
35};
36
37#ifndef KSYM_NAME_LEN 30#ifndef KSYM_NAME_LEN
38#define KSYM_NAME_LEN 256 31#define KSYM_NAME_LEN 256
39#endif 32#endif
diff --git a/tools/perf/util/python.c b/tools/perf/util/python.c
index 5be85f50cd1c..d21e270c7823 100644
--- a/tools/perf/util/python.c
+++ b/tools/perf/util/python.c
@@ -233,8 +233,8 @@ static PyObject *pyrf_throttle_event__repr(struct pyrf_event *pevent)
233{ 233{
234 struct throttle_event *te = (struct throttle_event *)(&pevent->event.header + 1); 234 struct throttle_event *te = (struct throttle_event *)(&pevent->event.header + 1);
235 235
236 return _PyUnicode_FromFormat("{ type: %sthrottle, time: %" PRIu64 ", id: %" PRIu64 236 return _PyUnicode_FromFormat("{ type: %sthrottle, time: %" PRI_lu64 ", id: %" PRI_lu64
237 ", stream_id: %" PRIu64 " }", 237 ", stream_id: %" PRI_lu64 " }",
238 pevent->event.header.type == PERF_RECORD_THROTTLE ? "" : "un", 238 pevent->event.header.type == PERF_RECORD_THROTTLE ? "" : "un",
239 te->time, te->id, te->stream_id); 239 te->time, te->id, te->stream_id);
240} 240}