aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2012-09-30 18:48:53 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2012-10-02 17:36:26 -0400
commit5852a445a00f346302411f50aa168e422c7e7ab2 (patch)
tree7f991c639697f141a82ff5561ad56e0e3abe88da /tools
parentba3d7deeef7fafdab7814e298fa2db0fc63bb5d0 (diff)
perf inject: Remove unused 'input_name' static var
If we ever want to allow inject to work with something other than stdin, we can put it back, but so far it is completely unused, so ditch it. Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Namhyung Kim <namhyung@gmail.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-qmwpnktckhd43eynnkxgqfpm@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/builtin-inject.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/perf/builtin-inject.c b/tools/perf/builtin-inject.c
index b5ab084233fa..e249f244b22a 100644
--- a/tools/perf/builtin-inject.c
+++ b/tools/perf/builtin-inject.c
@@ -14,7 +14,6 @@
14 14
15#include "util/parse-options.h" 15#include "util/parse-options.h"
16 16
17static char const *input_name = "-";
18static bool inject_build_ids; 17static bool inject_build_ids;
19 18
20static int perf_event__repipe_synth(struct perf_tool *tool __maybe_unused, 19static int perf_event__repipe_synth(struct perf_tool *tool __maybe_unused,
@@ -245,7 +244,7 @@ static int __cmd_inject(void)
245 perf_inject.tracing_data = perf_event__repipe_tracing_data; 244 perf_inject.tracing_data = perf_event__repipe_tracing_data;
246 } 245 }
247 246
248 session = perf_session__new(input_name, O_RDONLY, false, true, &perf_inject); 247 session = perf_session__new("-", O_RDONLY, false, true, &perf_inject);
249 if (session == NULL) 248 if (session == NULL)
250 return -ENOMEM; 249 return -ENOMEM;
251 250