aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-timechart.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/builtin-timechart.c')
-rw-r--r--tools/perf/builtin-timechart.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/perf/builtin-timechart.c b/tools/perf/builtin-timechart.c
index db6caae1a404..4b95cec6b4c5 100644
--- a/tools/perf/builtin-timechart.c
+++ b/tools/perf/builtin-timechart.c
@@ -30,7 +30,7 @@
30#include "util/parse-options.h" 30#include "util/parse-options.h"
31#include "util/parse-events.h" 31#include "util/parse-events.h"
32#include "util/event.h" 32#include "util/event.h"
33#include "util/data_map.h" 33#include "util/session.h"
34#include "util/svghelper.h" 34#include "util/svghelper.h"
35 35
36static char const *input_name = "perf.data"; 36static char const *input_name = "perf.data";
@@ -1046,7 +1046,7 @@ static int sample_type_check(u64 type)
1046 return 0; 1046 return 0;
1047} 1047}
1048 1048
1049static struct perf_file_handler file_handler = { 1049static struct perf_event_ops event_ops = {
1050 .process_comm_event = process_comm_event, 1050 .process_comm_event = process_comm_event,
1051 .process_fork_event = process_fork_event, 1051 .process_fork_event = process_fork_event,
1052 .process_exit_event = process_exit_event, 1052 .process_exit_event = process_exit_event,
@@ -1062,9 +1062,8 @@ static int __cmd_timechart(void)
1062 if (session == NULL) 1062 if (session == NULL)
1063 return -ENOMEM; 1063 return -ENOMEM;
1064 1064
1065 register_perf_file_handler(&file_handler); 1065 ret = perf_session__process_events(session, &event_ops, 0,
1066 1066 &event__cwdlen, &event__cwd);
1067 ret = perf_session__process_events(session, 0, &event__cwdlen, &event__cwd);
1068 if (ret) 1067 if (ret)
1069 goto out_delete; 1068 goto out_delete;
1070 1069