diff options
Diffstat (limited to 'tools/perf/builtin-stat.c')
-rw-r--r-- | tools/perf/builtin-stat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c index bb24f9c17f9a..7b8f09b0b8bf 100644 --- a/tools/perf/builtin-stat.c +++ b/tools/perf/builtin-stat.c | |||
@@ -1322,7 +1322,7 @@ static int __cmd_record(int argc, const char **argv) | |||
1322 | PARSE_OPT_STOP_AT_NON_OPTION); | 1322 | PARSE_OPT_STOP_AT_NON_OPTION); |
1323 | 1323 | ||
1324 | if (output_name) | 1324 | if (output_name) |
1325 | data->file.path = output_name; | 1325 | data->path = output_name; |
1326 | 1326 | ||
1327 | if (stat_config.run_count != 1 || forever) { | 1327 | if (stat_config.run_count != 1 || forever) { |
1328 | pr_err("Cannot use -r option with perf stat record.\n"); | 1328 | pr_err("Cannot use -r option with perf stat record.\n"); |
@@ -1523,8 +1523,8 @@ static int __cmd_report(int argc, const char **argv) | |||
1523 | input_name = "perf.data"; | 1523 | input_name = "perf.data"; |
1524 | } | 1524 | } |
1525 | 1525 | ||
1526 | perf_stat.data.file.path = input_name; | 1526 | perf_stat.data.path = input_name; |
1527 | perf_stat.data.mode = PERF_DATA_MODE_READ; | 1527 | perf_stat.data.mode = PERF_DATA_MODE_READ; |
1528 | 1528 | ||
1529 | session = perf_session__new(&perf_stat.data, false, &perf_stat.tool); | 1529 | session = perf_session__new(&perf_stat.data, false, &perf_stat.tool); |
1530 | if (session == NULL) | 1530 | if (session == NULL) |