diff options
author | Josh Poimboeuf <jpoimboe@redhat.com> | 2015-12-15 10:39:37 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-12-16 19:34:28 -0500 |
commit | 46113a54be53aea50a4f5926b87e86e2e66c4266 (patch) | |
tree | 950a873f47d9b2487d0a6fd61e002875acab8b88 /tools/perf/builtin-script.c | |
parent | 901421a5bdf605d24c278825cdd032cd6038bcb8 (diff) |
perf tools: Remove 'perf' from subcmd function and variable names
In preparation for moving exec_cmd.c and run-command.c out of perf and
into a library, remove 'perf' from all the symbol names.
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/bc3ee82b40b8f396b644fa49e0f7260ce442635b.1450193761.git.jpoimboe@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-script.c')
-rw-r--r-- | tools/perf/builtin-script.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index d259e9aa3a71..571016f16c5a 100644 --- a/tools/perf/builtin-script.c +++ b/tools/perf/builtin-script.c | |||
@@ -1408,7 +1408,7 @@ static int list_available_scripts(const struct option *opt __maybe_unused, | |||
1408 | char first_half[BUFSIZ]; | 1408 | char first_half[BUFSIZ]; |
1409 | char *script_root; | 1409 | char *script_root; |
1410 | 1410 | ||
1411 | snprintf(scripts_path, MAXPATHLEN, "%s/scripts", perf_exec_path()); | 1411 | snprintf(scripts_path, MAXPATHLEN, "%s/scripts", get_argv_exec_path()); |
1412 | 1412 | ||
1413 | scripts_dir = opendir(scripts_path); | 1413 | scripts_dir = opendir(scripts_path); |
1414 | if (!scripts_dir) | 1414 | if (!scripts_dir) |
@@ -1529,7 +1529,7 @@ int find_scripts(char **scripts_array, char **scripts_path_array) | |||
1529 | if (!session) | 1529 | if (!session) |
1530 | return -1; | 1530 | return -1; |
1531 | 1531 | ||
1532 | snprintf(scripts_path, MAXPATHLEN, "%s/scripts", perf_exec_path()); | 1532 | snprintf(scripts_path, MAXPATHLEN, "%s/scripts", get_argv_exec_path()); |
1533 | 1533 | ||
1534 | scripts_dir = opendir(scripts_path); | 1534 | scripts_dir = opendir(scripts_path); |
1535 | if (!scripts_dir) { | 1535 | if (!scripts_dir) { |
@@ -1587,7 +1587,7 @@ static char *get_script_path(const char *script_root, const char *suffix) | |||
1587 | char lang_path[MAXPATHLEN]; | 1587 | char lang_path[MAXPATHLEN]; |
1588 | char *__script_root; | 1588 | char *__script_root; |
1589 | 1589 | ||
1590 | snprintf(scripts_path, MAXPATHLEN, "%s/scripts", perf_exec_path()); | 1590 | snprintf(scripts_path, MAXPATHLEN, "%s/scripts", get_argv_exec_path()); |
1591 | 1591 | ||
1592 | scripts_dir = opendir(scripts_path); | 1592 | scripts_dir = opendir(scripts_path); |
1593 | if (!scripts_dir) | 1593 | if (!scripts_dir) |
@@ -1823,7 +1823,7 @@ int cmd_script(int argc, const char **argv, const char *prefix __maybe_unused) | |||
1823 | scripting_max_stack = itrace_synth_opts.callchain_sz; | 1823 | scripting_max_stack = itrace_synth_opts.callchain_sz; |
1824 | 1824 | ||
1825 | /* make sure PERF_EXEC_PATH is set for scripts */ | 1825 | /* make sure PERF_EXEC_PATH is set for scripts */ |
1826 | perf_set_argv_exec_path(perf_exec_path()); | 1826 | set_argv_exec_path(get_argv_exec_path()); |
1827 | 1827 | ||
1828 | if (argc && !script_name && !rec_script_path && !rep_script_path) { | 1828 | if (argc && !script_name && !rec_script_path && !rep_script_path) { |
1829 | int live_pipe[2]; | 1829 | int live_pipe[2]; |