linux/tools/perf/tests
Jiri Olsa 5a6bef47b4 perf tests: Test breakpoint overflow signal handler
Adding automated test for breakpoint event signal handler checking if
it's executed properly.

The test is related to the proper handling of the RF EFLAGS bit on
x86_64, but it's generic for all archs.

First we check the signal handler is properly called and that the
following debug exception return to user space wouldn't trigger
recursive breakpoint.

This is related to x86_64 RF EFLAGS bit being managed in a wrong way.

Second we check that we can set breakpoint in signal handler, which is
not possible on x86_64 if the signal handler is executed with RF EFLAG
set.

This test is inpired by overflow tests done by Vince Weaver.

Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Link: http://lkml.kernel.org/r/1362940871-24486-6-git-send-email-jolsa@redhat.com
[ committer note: s/pr_err/pr_debug/g i.e. print just OK or FAILED in non verbose mode ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2013-03-15 13:06:10 -03:00
..
attr perf tests: Add attr stat -C cpu test 2013-03-15 13:06:00 -03:00
attr.c perf tests: Make attr script verbose friendly 2013-03-15 13:05:59 -03:00
attr.py perf tests: Make attr script test event cpu 2013-03-15 13:06:00 -03:00
bp_signal.c perf tests: Test breakpoint overflow signal handler 2013-03-15 13:06:10 -03:00
builtin-test.c perf tests: Test breakpoint overflow signal handler 2013-03-15 13:06:10 -03:00
dso-data.c perf tests: Check for mkstemp return value in dso-data test 2012-11-14 16:50:30 -03:00
evsel-roundtrip-name.c perf evlist: Remove cpus and threads arguments from perf_evlist__new() 2013-03-15 13:06:01 -03:00
evsel-tp-sched.c perf tests: Move perf_evsel__tp_sched_test into separate object 2012-11-14 16:50:02 -03:00
hists_link.c perf evlist: Remove cpus and threads arguments from perf_evlist__new() 2013-03-15 13:06:01 -03:00
mmap-basic.c perf evlist: Remove cpus and threads arguments from perf_evlist__new() 2013-03-15 13:06:01 -03:00
open-syscall-all-cpus.c perf evsel: Fix memory leaks on evsel->counts 2013-01-30 10:37:04 -03:00
open-syscall-tp-fields.c perf evlist: Remove cpus and threads arguments from perf_evlist__new() 2013-03-15 13:06:01 -03:00
open-syscall.c perf test: Use perf_evsel__newtp constructor in the tracepoint tests 2012-12-10 15:11:43 -03:00
parse-events.c perf evlist: Remove cpus and threads arguments from perf_evlist__new() 2013-03-15 13:06:01 -03:00
perf-record.c perf evlist: Add want_signal parameter to perf_evlist__prepare_workload() 2013-03-15 13:06:03 -03:00
pmu.c perf tests: Use ARRAY_SIZE() were applicable 2013-01-24 16:40:51 -03:00
python-use.c perf tests: Check python path on attr and binding test 2013-01-24 16:40:10 -03:00
rdpmc.c perf tests: Move test__rdpmc into separate object 2012-11-14 16:49:50 -03:00
tests.h perf tests: Test breakpoint overflow signal handler 2013-03-15 13:06:10 -03:00
vmlinux-kallsyms.c perf tests: Call machine__exit in the vmlinux matches kallsyms test 2013-01-25 12:49:29 -03:00