linux/tools/perf/tests
Zhouyi Zhou 8e50d384cc perf tools: Fixup mmap event consumption
The tail position of the event buffer should only be modified after
actually use that event.

If not the event buffer could be invalid before use, and segment fault
occurs when invoking perf top -G.

Signed-off-by: Zhouyi Zhou <yizhouzhou@ict.ac.cn>
Cc: David Ahern <dsahern@gmail.com>
Cc: Zhouyi Zhou <yizhouzhou@ict.ac.cn>
Link: http://lkml.kernel.org/r/1382600613-32177-1-git-send-email-zhouzhouyi@gmail.com
[ Simplified the logic using exit gotos and renamed write_tail method to mmap_consume ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2013-10-28 16:06:00 -03:00
..
attr perf tests: Add attr record group sampling test 2013-08-07 17:35:23 -03:00
attr.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2013-04-30 09:36:50 -07:00
attr.py perf tests: Make attr script test event cpu 2013-03-15 13:06:00 -03:00
bp_signal.c perf tests: Fix compile errors in bp_signal files 2013-05-28 16:23:57 +03:00
bp_signal_overflow.c perf tests: Fix compile errors in bp_signal files 2013-05-28 16:23:57 +03:00
builtin-test.c perf tools: Add test for parsing with no sample_id_all bit 2013-09-05 16:17:46 -03:00
code-reading.c perf tools: Fixup mmap event consumption 2013-10-28 16:06:00 -03:00
dso-data.c perf tests: Make TEST_ASSERT_VAL global 2013-07-12 13:45:52 -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: Check proper prev_state size for sched_switch tp 2013-07-17 12:34:53 -03:00
hists_link.c perf tools: Remove references to struct ip_event 2013-08-29 15:29:28 -03:00
keep-tracking.c perf tools: Fixup mmap event consumption 2013-10-28 16:06:00 -03:00
make perf tests: Add broken install-* tests into tests/make 2013-07-22 16:54:56 -03:00
mmap-basic.c perf tools: Fixup mmap event consumption 2013-10-28 16:06:00 -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 tools: Fixup mmap event consumption 2013-10-28 16:06:00 -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 tests: Add tests of new pinned modifier 2013-08-07 17:35:40 -03:00
parse-no-sample-id-all.c perf tools: Add test for parsing with no sample_id_all bit 2013-09-05 16:17:46 -03:00
perf-record.c perf tools: Fixup mmap event consumption 2013-10-28 16:06:00 -03:00
perf-time-to-tsc.c perf tools: Fixup mmap event consumption 2013-10-28 16:06:00 -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
sample-parsing.c perf tests: Add a sample parsing test 2013-08-29 16:46:58 -03:00
sw-clock.c perf tools: Fixup mmap event consumption 2013-10-28 16:06:00 -03:00
task-exit.c perf tools: Fixup mmap event consumption 2013-10-28 16:06:00 -03:00
tests.h perf tools: Add test for parsing with no sample_id_all bit 2013-09-05 16:17:46 -03:00
vmlinux-kallsyms.c perf tests: Adjust the vmlinux symtab matches kallsyms test again 2013-08-07 17:35:33 -03:00