summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJeroen Hofstee <jeroen@myspectrum.nl>2017-04-21 15:21:11 +0900
committerGreg Hackmann <ghackmann@google.com>2017-10-09 14:00:12 -0700
commit03e66b365eda022da0e82df4685e1aefcbdc656e (patch)
tree05d56a2cba470877dcd984930f59f20f87077354 /tools/perf/scripts/python
parent54d8c15081750c6a44369bc9372e1277361fd480 (diff)
UPSTREAM: kbuild: fix asm-offset generation to work with clang
KBuild abuses the asm statement to write to a file and clang chokes about these invalid asm statements. Hack it even more by fooling this is actual valid asm code. [masahiro: Import Jeroen's work for U-Boot: http://patchwork.ozlabs.org/patch/375026/ Tweak sed script a little to avoid garbage '#' for GCC case, like #define NR_PAGEFLAGS 23 /* __NR_PAGEFLAGS # */ ] Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Matthias Kaehlcke <mka@chromium.org> Tested-by: Matthias Kaehlcke <mka@chromium.org> (cherry picked from commit cf0c3e68aa81f992b0301f62e341b710d385bf68) Signed-off-by: Greg Hackmann <ghackmann@google.com> Change-Id: Ifbfd4eff59a7f4304f0d8fdcba4075100244562f
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions