Skip to content

Commit 02dfc8d

Browse files
namhyungacmel
authored andcommitted
tools include: Move perf's bug.h to a generic place
So that it can be shared with others like libtraceevent. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung.kim@lge.com> Cc: Steven Rostedt <rostedt@goodmis.org> Link: http://lkml.kernel.org/r/1389276059-8829-4-git-send-email-namhyung@kernel.org [ Added the new header to tools/perf/MANIFEST ] Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 835d44b commit 02dfc8d

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef _PERF_ASM_GENERIC_BUG_H
2-
#define _PERF_ASM_GENERIC_BUG_H
1+
#ifndef _TOOLS_ASM_BUG_H
2+
#define _TOOLS_ASM_BUG_H
33

44
#define __WARN_printf(arg...) do { fprintf(stderr, arg); } while (0)
55

@@ -19,4 +19,5 @@
1919
__warned = 1; \
2020
unlikely(__ret_warn_once); \
2121
})
22-
#endif
22+
23+
#endif /* _TOOLS_ASM_BUG_H */

‎tools/perf/MANIFEST‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ tools/lib/traceevent
44
tools/lib/lk
55
tools/lib/symbol/kallsyms.c
66
tools/lib/symbol/kallsyms.h
7+
tools/include/asm/bug.h
78
tools/include/linux/compiler.h
89
include/linux/const.h
910
include/linux/perf_event.h

‎tools/perf/Makefile.perf‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ LIB_H += util/include/linux/string.h
226226
LIB_H += util/include/linux/types.h
227227
LIB_H += util/include/linux/linkage.h
228228
LIB_H += util/include/asm/asm-offsets.h
229-
LIB_H += util/include/asm/bug.h
229+
LIB_H += ../include/asm/bug.h
230230
LIB_H += util/include/asm/byteorder.h
231231
LIB_H += util/include/asm/hweight.h
232232
LIB_H += util/include/asm/swab.h

0 commit comments

Comments
 (0)