Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 333956
b: refs/heads/master
c: 4e34d95
h: refs/heads/master
v: v3
  • Loading branch information
Namhyung Kim authored and Arnaldo Carvalho de Melo committed Oct 2, 2012
1 parent 6eb0da2 commit 6532125
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4d8061faca7a50010f037374410f0c3647c3ecf8
refs/heads/master: 4e34d9588b46f44a4dba718606913133f15e4b21
10 changes: 5 additions & 5 deletions trunk/tools/perf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ include config/utilities.mak
#
# Define NO_LIBUNWIND if you do not want libunwind dependency for dwarf
# backtrace post unwind.
#
# Define NO_BACKTRACE if you do not want stack backtrace debug feature

$(OUTPUT)PERF-VERSION-FILE: .FORCE-PERF-VERSION-FILE
@$(SHELL_PATH) util/PERF-VERSION-GEN $(OUTPUT)
Expand Down Expand Up @@ -749,11 +751,9 @@ ifndef NO_STRLCPY
endif
endif

ifdef NO_BACKTRACE
BASIC_CFLAGS += -DNO_BACKTRACE
else
ifneq ($(call try-cc,$(SOURCE_BACKTRACE),),y)
BASIC_CFLAGS += -DNO_BACKTRACE
ifndef NO_BACKTRACE
ifeq ($(call try-cc,$(SOURCE_BACKTRACE),),y)
BASIC_CFLAGS += -DBACKTRACE_SUPPORT
endif
endif

Expand Down
4 changes: 2 additions & 2 deletions trunk/tools/perf/util/util.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "../perf.h"
#include "util.h"
#include <sys/mman.h>
#ifndef NO_BACKTRACE
#ifdef BACKTRACE_SUPPORT
#include <execinfo.h>
#endif
#include <stdio.h>
Expand Down Expand Up @@ -165,7 +165,7 @@ size_t hex_width(u64 v)
}

/* Obtain a backtrace and print it to stdout. */
#ifndef NO_BACKTRACE
#ifdef BACKTRACE_SUPPORT
void dump_stack(void)
{
void *array[16];
Expand Down

0 comments on commit 6532125

Please sign in to comment.