]> git.ipfire.org Git - thirdparty/linux.git/commit - tools/perf/util/annotate.c
perf annotate: Use a ops table for annotation_line__write()
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 16 Mar 2018 02:14:51 +0000 (23:14 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 20 Mar 2018 18:36:18 +0000 (15:36 -0300)
commitc298304bd747d6a0b733f0becb470ff07ead0317
tree41bd9879719d1305d2d201e64109d6f883c5f2eb
parenta1e9b74cc2ef80131b9f955c0e1acc25285dc88c
perf annotate: Use a ops table for annotation_line__write()

To simplify the passing of arguments, the --stdio2 code will have to set
all the fields with operations printing to stdout.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jin Yao <yao.jin@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-pcs3c7vdy9ucygxflo4nl1o7@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/ui/browsers/annotate.c
tools/perf/util/annotate.c
tools/perf/util/annotate.h