perf tools: Introduce pstack_peek()
authorNamhyung Kim <namhyung@kernel.org>
Fri, 24 Apr 2015 01:15:32 +0000 (10:15 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 5 May 2015 21:13:22 +0000 (18:13 -0300)
commitc8539e3fc630067020814657636b45095edfb5bb
tree2fcfbf34968411b8be0d8fea7b93285b9d260986
parentea7cd59233097984850adc0e4119644f089be734
perf tools: Introduce pstack_peek()

The pstack_peek() is to get the topmost entry without removing it.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1429838133-14001-1-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/pstack.c
tools/perf/util/pstack.h