diff options
Diffstat (limited to 'tools/perf/builtin-mem.c')
-rw-r--r-- | tools/perf/builtin-mem.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/tools/perf/builtin-mem.c b/tools/perf/builtin-mem.c index 31c00f1..253133a 100644 --- a/tools/perf/builtin-mem.c +++ b/tools/perf/builtin-mem.c @@ -5,7 +5,6 @@ #include "util/trace-event.h" #include "util/tool.h" #include "util/session.h" -#include "util/data.h" #define MEM_OPERATION_LOAD "load" #define MEM_OPERATION_STORE "store" @@ -120,14 +119,10 @@ static int process_sample_event(struct perf_tool *tool, static int report_raw_events(struct perf_mem *mem) { - struct perf_data_file file = { - .path = input_name, - .mode = PERF_DATA_MODE_READ, - }; int err = -EINVAL; int ret; - struct perf_session *session = perf_session__new(&file, false, - &mem->tool); + struct perf_session *session = perf_session__new(input_name, O_RDONLY, + 0, false, &mem->tool); if (session == NULL) return -ENOMEM; |