alistair23-linux/tools/perf
Arnaldo Carvalho de Melo 09f4d78ab0 perf top: Show backtrace when handling a SIGSEGV on --stdio mode
It was just freezing instead of informing about the SEGV, fix it and
also print a backtrace, just like in the TUI mode and in 'perf trace'.

Tested by provoking a NULL deref when pressing 'z':

     0.31%  libc-2.20.so     [.] malloc_consolidate
     0.31%  ld-2.20.so       [.] _dl_relocate_object
     0.28%  cc1              [.] ht_lookup
     0.28%  cc1              [.] ira_init_register_move_cost
  perf: Segmentation fault
  Obtained 7 stack frames.
  perf(dump_stack+0x32) [0x4d69f2]
  perf(sighandler_dump_stack+0x29) [0x4d6a89]
  /lib64/libc.so.6(+0x34960) [0x7f5064333960]
  perf() [0x438790]
  /lib64/libpthread.so.0(+0x752a) [0x7f50663dd52a]
  /lib64/libc.so.6(clone+0x6d) [0x7f50643ff22d]
  #

Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-pewrpzqd29rgmhu2wkk7fhww@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-08-19 15:16:08 -03:00
..
arch perf tools: Add ARM64 perf_regs_load to support libunwind and enable testing 2015-05-29 12:43:40 -03:00
bench perf bench numa: Share sched_getcpu() __weak def with cloexec.c 2015-05-18 12:36:46 -03:00
config perf tools: Fix test build error when bindir contains double slash 2015-07-28 13:03:49 -03:00
Documentation perf stat: Introduce --per-thread option 2015-06-26 12:05:04 -03:00
python
scripts
tests perf stat: Make stats work over the thread dimension 2015-06-26 11:20:02 -03:00
ui perf hists browser: Take the --comm, --dsos, etc filters into account 2015-07-13 16:06:09 -03:00
util perf tools: Make fork event processing more resilient 2015-08-19 14:15:25 -03:00
.gitignore perf tools: Ignore .config-detected in .gitignore 2015-06-17 12:44:55 -03:00
Build
builtin-annotate.c perf annotate: Display total number of samples with --show-total-period 2015-06-19 16:39:18 -03:00
builtin-bench.c perf bench futex: Support parallel waker threads 2015-05-08 16:23:50 -03:00
builtin-buildid-cache.c
builtin-buildid-list.c
builtin-data.c
builtin-diff.c perf machine: Protect the machine->threads with a rwlock 2015-05-08 16:19:27 -03:00
builtin-evlist.c
builtin-help.c
builtin-inject.c perf inject: Fill in the missing session freeing after an error occurs 2015-07-01 17:53:49 -03:00
builtin-kmem.c perf kmem: Fill in the missing session freeing after an error occurs 2015-07-01 17:53:49 -03:00
builtin-kvm.c perf kvm: Fill in the missing session freeing after an error occurs 2015-07-01 17:53:49 -03:00
builtin-list.c
builtin-lock.c perf machine: Protect the machine->threads with a rwlock 2015-05-08 16:19:27 -03:00
builtin-mem.c perf mem: Fill in the missing session freeing after an error occurs 2015-07-01 17:53:49 -03:00
builtin-probe.c perf probe: Add --range option to show a variable's location range 2015-05-12 09:59:50 -03:00
builtin-record.c perf tools: Fix buildid processing 2015-08-19 14:15:26 -03:00
builtin-report.c perf report: Fill in the missing session freeing after an error occurs 2015-07-01 17:53:49 -03:00
builtin-sched.c perf sched: Add option to merge like comms to lat output 2015-05-27 12:21:45 -03:00
builtin-script.c perf machine: Protect the machine->threads with a rwlock 2015-05-08 16:19:27 -03:00
builtin-stat.c perf stat: Fix shadow declaration of close 2015-07-08 10:04:58 -03:00
builtin-timechart.c perf tools: Elliminate alignment holes 2015-05-18 10:17:33 -03:00
builtin-top.c perf top: Show backtrace when handling a SIGSEGV on --stdio mode 2015-08-19 15:16:08 -03:00
builtin-trace.c perf trace: Validate syscall list passed via -e argument 2015-06-26 10:47:41 -03:00
builtin.h
command-list.txt
CREDITS
design.txt
Makefile perf build: Fix single target build dependency check 2015-06-22 11:27:09 -03:00
Makefile.perf perf tools: Really allow to specify custom CC, AR or LD 2015-07-15 11:57:28 -03:00
MANIFEST tools: Copy lib/hweight.c from the kernel sources 2015-07-09 16:29:56 -03:00
perf-archive.sh
perf-completion.sh
perf-read-vdso.c
perf-sys.h perf tools: Move generic barriers out of perf-sys.h 2015-05-08 16:05:08 -03:00
perf-with-kcore.sh
perf.c
perf.h perf tools: Configurable per thread proc map processing time out 2015-06-19 18:27:13 -03:00