summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2017-04-17 14:39:06 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2017-04-19 12:01:48 -0400
commit28a9bb9621d9f8b4328048297cd306e09fbbf175 (patch)
tree6da0ab344b5cdb036ef0a47530c1c4b54538bba2
parentaa8cc2f6b5faae3511ea229846d8e54bd8df40d1 (diff)
perf tools: Ditch unused PATH_SEP, STRIP_EXTENSION
Should make sense for windows, where git is supported. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/n/tip-lzxlhmqrizk72d0zcsreggy8@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r--tools/perf/perf.c10
-rw-r--r--tools/perf/util/util.h16
2 files changed, 0 insertions, 26 deletions
diff --git a/tools/perf/perf.c b/tools/perf/perf.c
index 07ee1352f4ed..94e9418aecb1 100644
--- a/tools/perf/perf.c
+++ b/tools/perf/perf.c
@@ -328,16 +328,6 @@ static void handle_internal_command(int argc, const char **argv)
328{ 328{
329 const char *cmd = argv[0]; 329 const char *cmd = argv[0];
330 unsigned int i; 330 unsigned int i;
331 static const char ext[] = STRIP_EXTENSION;
332
333 if (sizeof(ext) > 1) {
334 i = strlen(argv[0]) - strlen(ext);
335 if (i > 0 && !strcmp(argv[0] + i, ext)) {
336 char *argv0 = strdup(argv[0]);
337 argv[0] = cmd = argv0;
338 argv0[i] = '\0';
339 }
340 }
341 331
342 /* Turn "perf cmd --help" into "perf help cmd" */ 332 /* Turn "perf cmd --help" into "perf help cmd" */
343 if (argc > 1 && !strcmp(argv[1], "--help")) { 333 if (argc > 1 && !strcmp(argv[1], "--help")) {
diff --git a/tools/perf/util/util.h b/tools/perf/util/util.h
index aa35509464b5..f26666d77677 100644
--- a/tools/perf/util/util.h
+++ b/tools/perf/util/util.h
@@ -49,22 +49,6 @@ extern const char *spaces;
49extern const char *dots; 49extern const char *dots;
50extern char buildid_dir[]; 50extern char buildid_dir[];
51 51
52#ifndef PATH_SEP
53#define PATH_SEP ':'
54#endif
55
56#ifndef STRIP_EXTENSION
57#define STRIP_EXTENSION ""
58#endif
59
60#ifndef has_dos_drive_prefix
61#define has_dos_drive_prefix(path) 0
62#endif
63
64#ifndef is_dir_sep
65#define is_dir_sep(c) ((c) == '/')
66#endif
67
68#ifdef __GNUC__ 52#ifdef __GNUC__
69#define NORETURN __attribute__((__noreturn__)) 53#define NORETURN __attribute__((__noreturn__))
70#else 54#else