perf tools: Make binary data printer code in trace_event public available
authorWang Nan <wangnan0@huawei.com>
Wed, 24 Feb 2016 11:20:44 +0000 (11:20 +0000)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 24 Feb 2016 14:38:01 +0000 (11:38 -0300)
commitc339b1a90e6cd638a1d99cbbf49d870ce233198e
tree2d21e73f202192ab2c487d91d75675d694103dea
parentc19ac91245a2f8d26aafd7f23256f3b76314d5d4
perf tools: Make binary data printer code in trace_event public available

Move code printing binray data from trace_event() to utils.c and allows
passing different printer. Further commits will use this logic to print
bpf output event.

Signed-off-by: Wang Nan <wangnan0@huawei.com>
Cc: Brendan Gregg <brendan.d.gregg@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Li Zefan <lizefan@huawei.com>
Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: pi3orama@163.com
Link: http://lkml.kernel.org/r/1456312845-111583-2-git-send-email-wangnan0@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/debug.c
tools/perf/util/util.c
tools/perf/util/util.h