perf callchain: Introduce callchain_cursor__copy()
authorNamhyung Kim <namhyung@kernel.org>
Tue, 6 Dec 2016 03:40:02 +0000 (12:40 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 7 Dec 2016 15:00:33 +0000 (12:00 -0300)
commit571f1eb9b967a52732d2e1f41f1b62e27c900325
tree05b780fa0ef975f55c1695a14f3631215e4d59f2
parent6fa94258ce2673adc707b2ec5668464f2cf83ed3
perf callchain: Introduce callchain_cursor__copy()

The callchain_cursor__copy() function is to save current callchain
captured by a cursor.  It'll be used to keep callchains when switching
to idle task for each cpu.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20161206034010.6499-3-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/callchain.c
tools/perf/util/callchain.h