diff options
| author | Ingo Molnar <mingo@kernel.org> | 2017-06-07 17:50:19 +0200 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2017-06-07 17:50:19 +0200 |
| commit | 3e411b0ee7c7bf0cbe2bd5961f84a02f0451ad57 (patch) | |
| tree | 271e81558067f046f2104b2cfc0c35d6ecf11ee5 /tools/perf/tests/bp_signal.c | |
| parent | ba7b2387ad239a519041f2a2d35a1902bdd03dfb (diff) | |
| parent | 2538b9e2450ae255337c04356e9e0f8cb9ec48d9 (diff) | |
| download | linux-3e411b0ee7c7bf0cbe2bd5961f84a02f0451ad57.tar.gz linux-3e411b0ee7c7bf0cbe2bd5961f84a02f0451ad57.tar.bz2 linux-3e411b0ee7c7bf0cbe2bd5961f84a02f0451ad57.zip | |
Merge tag 'perf-urgent-for-mingo-4.12-20170606' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/urgent
Pull perf/urgent fixes from Arnaldo Carvalho de Melo:
- Only print NMI watchdog hint in 'perf stat' when it is enabled (Andi Kleen)
- Fix sys_mmap/sys_old_mmap shandling in s390 in 'perf trace' (Jiri Olsa)
- Disable breakpoint signal tests in powerpc, that lacks the perf kernel
glue to set breakpoint events and makes 'perf test' always fail (Jiri Olsa)
- Fix 'perf annotate' for branch instruction with multiple operands (Kim Phillips)
- Add missing powerpc triplet when disassembling with 'objdump' in 'perf
annotate' (Kim Phillips)
- Do not trow away partial unwound stacks when using libdw, making
callchains produced with it similar to those produced when linked with
the other DWARF unwind library supported in perf, libunwind (Milian Wolff)
- Fixes to properly handle kernel modules when processing build-id meta
events (Namhyung Kim)
- Fix handling of compressed modules in the build-id cache (Namhyung Kim)
- Fix 'perf annotate' failure when filename has special chars (Ravi Bangoria)
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/perf/tests/bp_signal.c')
| -rw-r--r-- | tools/perf/tests/bp_signal.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/perf/tests/bp_signal.c b/tools/perf/tests/bp_signal.c index e7664fe3bd33..8ba2c4618fe9 100644 --- a/tools/perf/tests/bp_signal.c +++ b/tools/perf/tests/bp_signal.c @@ -288,3 +288,17 @@ int test__bp_signal(int subtest __maybe_unused) return count1 == 1 && overflows == 3 && count2 == 3 && overflows_2 == 3 && count3 == 2 ? TEST_OK : TEST_FAIL; } + +bool test__bp_signal_is_supported(void) +{ +/* + * The powerpc so far does not have support to even create + * instruction breakpoint using the perf event interface. + * Once it's there we can release this. + */ +#ifdef __powerpc__ + return false; +#else + return true; +#endif +} |
