aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/data-convert-json.c
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2021-07-19 22:31:49 +0000
committerArnaldo Carvalho de Melo <[email protected]>2021-08-02 13:06:51 +0000
commit2681bd85a4b92788e265934d0d76bd56b5b08d16 (patch)
tree407ae5da640ad87ff49c28d59c098feed889b941 /tools/perf/util/data-convert-json.c
parentperf test: Handle fd gaps in test__dso_data_reopen (diff)
downloadkernel-2681bd85a4b92788e265934d0d76bd56b5b08d16.tar.gz
kernel-2681bd85a4b92788e265934d0d76bd56b5b08d16.zip
perf tools: Remove repipe argument from perf_session__new()
The repipe argument is only used by perf inject and the all others passes 'false'. Let's remove it from the function signature and add __perf_session__new() to be called from perf inject directly. This is a preparation of the change the pipe input/output. Signed-off-by: Namhyung Kim <[email protected]> Acked-by: Jiri Olsa <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] [ Fixed up some trivial conflicts as this patchset fell thru the cracks ;-( ] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/data-convert-json.c')
-rw-r--r--tools/perf/util/data-convert-json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/data-convert-json.c b/tools/perf/util/data-convert-json.c
index 355cd1948bdf..f1ab6edba446 100644
--- a/tools/perf/util/data-convert-json.c
+++ b/tools/perf/util/data-convert-json.c
@@ -334,7 +334,7 @@ int bt_convert__perf2json(const char *input_name, const char *output_name,
goto err;
}
- session = perf_session__new(&data, false, &c.tool);
+ session = perf_session__new(&data, &c.tool);
if (IS_ERR(session)) {
fprintf(stderr, "Error creating perf session!\n");
goto err_fclose;