aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-record.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/builtin-record.c')
-rw-r--r--tools/perf/builtin-record.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c
index f14cb5fdb91f..8c029fe2e22c 100644
--- a/tools/perf/builtin-record.c
+++ b/tools/perf/builtin-record.c
@@ -33,11 +33,11 @@
33 33
34#define CALLCHAIN_HELP "do call-graph (stack chain/backtrace) recording: " 34#define CALLCHAIN_HELP "do call-graph (stack chain/backtrace) recording: "
35 35
36#ifdef NO_LIBUNWIND_SUPPORT 36#ifdef LIBUNWIND_SUPPORT
37static char callchain_help[] = CALLCHAIN_HELP "[fp]";
38#else
39static unsigned long default_stack_dump_size = 8192; 37static unsigned long default_stack_dump_size = 8192;
40static char callchain_help[] = CALLCHAIN_HELP "[fp] dwarf"; 38static char callchain_help[] = CALLCHAIN_HELP "[fp] dwarf";
39#else
40static char callchain_help[] = CALLCHAIN_HELP "[fp]";
41#endif 41#endif
42 42
43enum write_mode_t { 43enum write_mode_t {
@@ -800,7 +800,7 @@ error:
800 return ret; 800 return ret;
801} 801}
802 802
803#ifndef NO_LIBUNWIND_SUPPORT 803#ifdef LIBUNWIND_SUPPORT
804static int get_stack_size(char *str, unsigned long *_size) 804static int get_stack_size(char *str, unsigned long *_size)
805{ 805{
806 char *endptr; 806 char *endptr;
@@ -826,7 +826,7 @@ static int get_stack_size(char *str, unsigned long *_size)
826 max_size, str); 826 max_size, str);
827 return -1; 827 return -1;
828} 828}
829#endif /* !NO_LIBUNWIND_SUPPORT */ 829#endif /* LIBUNWIND_SUPPORT */
830 830
831static int 831static int
832parse_callchain_opt(const struct option *opt __maybe_unused, const char *arg, 832parse_callchain_opt(const struct option *opt __maybe_unused, const char *arg,
@@ -865,7 +865,7 @@ parse_callchain_opt(const struct option *opt __maybe_unused, const char *arg,
865 "needed for -g fp\n"); 865 "needed for -g fp\n");
866 break; 866 break;
867 867
868#ifndef NO_LIBUNWIND_SUPPORT 868#ifdef LIBUNWIND_SUPPORT
869 /* Dwarf style */ 869 /* Dwarf style */
870 } else if (!strncmp(name, "dwarf", sizeof("dwarf"))) { 870 } else if (!strncmp(name, "dwarf", sizeof("dwarf"))) {
871 ret = 0; 871 ret = 0;
@@ -883,7 +883,7 @@ parse_callchain_opt(const struct option *opt __maybe_unused, const char *arg,
883 if (!ret) 883 if (!ret)
884 pr_debug("callchain: stack dump size %d\n", 884 pr_debug("callchain: stack dump size %d\n",
885 rec->opts.stack_dump_size); 885 rec->opts.stack_dump_size);
886#endif /* !NO_LIBUNWIND_SUPPORT */ 886#endif /* LIBUNWIND_SUPPORT */
887 } else { 887 } else {
888 pr_err("callchain: Unknown -g option " 888 pr_err("callchain: Unknown -g option "
889 "value: %s\n", arg); 889 "value: %s\n", arg);