diff options
Diffstat (limited to 'tools/perf/util/header.c')
-rw-r--r-- | tools/perf/util/header.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c index 76c0b2c49eb8..33c17a2b2a81 100644 --- a/tools/perf/util/header.c +++ b/tools/perf/util/header.c | |||
@@ -1,5 +1,6 @@ | |||
1 | #define _FILE_OFFSET_BITS 64 | 1 | #define _FILE_OFFSET_BITS 64 |
2 | 2 | ||
3 | #include "util.h" | ||
3 | #include <sys/types.h> | 4 | #include <sys/types.h> |
4 | #include <byteswap.h> | 5 | #include <byteswap.h> |
5 | #include <unistd.h> | 6 | #include <unistd.h> |
@@ -11,7 +12,6 @@ | |||
11 | 12 | ||
12 | #include "evlist.h" | 13 | #include "evlist.h" |
13 | #include "evsel.h" | 14 | #include "evsel.h" |
14 | #include "util.h" | ||
15 | #include "header.h" | 15 | #include "header.h" |
16 | #include "../perf.h" | 16 | #include "../perf.h" |
17 | #include "trace-event.h" | 17 | #include "trace-event.h" |
@@ -388,7 +388,7 @@ static int write_event_desc(int fd, struct perf_header *h __used, | |||
388 | /* | 388 | /* |
389 | * write event string as passed on cmdline | 389 | * write event string as passed on cmdline |
390 | */ | 390 | */ |
391 | ret = do_write_string(fd, attr->name); | 391 | ret = do_write_string(fd, event_name(attr)); |
392 | if (ret < 0) | 392 | if (ret < 0) |
393 | return ret; | 393 | return ret; |
394 | /* | 394 | /* |