diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-08-03 12:50:06 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-08-03 12:50:06 -0400 |
| commit | bf0f500bd0199aab613eb0ecb3412edd5472740d (patch) | |
| tree | f9ef3d5177a177c05549560fb3ac7ef1a66ea949 /scripts | |
| parent | 4b2e0162e4ab1a976eec0a36ca0bd920b02bfff3 (diff) | |
| parent | 7522c03ae307e657114ff909aec650304371a134 (diff) | |
Merge tag 'trace-v4.8-1' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace
Pull tracing fixes from Steven Rostedt:
"A few updates and fixes:
- move the suppressing of the __builtin_return_address >0 warning to
the tracing directory only.
- metag recordmcount fix for newer glibc's
- two tracing histogram fixes that were reported by KASAN"
* tag 'trace-v4.8-1' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
tracing: Fix use-after-free in hist_register_trigger()
tracing: Fix use-after-free in hist_unreg_all/hist_enable_unreg_all
Makefile: Mute warning for __builtin_return_address(>0) for tracing only
ftrace/recordmcount: Work around for addition of metag magic but not relocations
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/recordmcount.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/recordmcount.c b/scripts/recordmcount.c index e167592793a7..42396a74405d 100644 --- a/scripts/recordmcount.c +++ b/scripts/recordmcount.c | |||
| @@ -33,10 +33,17 @@ | |||
| 33 | #include <string.h> | 33 | #include <string.h> |
| 34 | #include <unistd.h> | 34 | #include <unistd.h> |
| 35 | 35 | ||
| 36 | /* | ||
| 37 | * glibc synced up and added the metag number but didn't add the relocations. | ||
| 38 | * Work around this in a crude manner for now. | ||
| 39 | */ | ||
| 36 | #ifndef EM_METAG | 40 | #ifndef EM_METAG |
| 37 | /* Remove this when these make it to the standard system elf.h. */ | ||
| 38 | #define EM_METAG 174 | 41 | #define EM_METAG 174 |
| 42 | #endif | ||
| 43 | #ifndef R_METAG_ADDR32 | ||
| 39 | #define R_METAG_ADDR32 2 | 44 | #define R_METAG_ADDR32 2 |
| 45 | #endif | ||
| 46 | #ifndef R_METAG_NONE | ||
| 40 | #define R_METAG_NONE 3 | 47 | #define R_METAG_NONE 3 |
| 41 | #endif | 48 | #endif |
| 42 | 49 | ||
