perf inject: Add missing callbacks in perf_tool
authorNamhyung Kim <namhyung@kernel.org>
Mon, 12 Oct 2020 07:02:10 +0000 (16:02 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 13 Oct 2020 13:59:42 +0000 (10:59 -0300)
commit2946ecedd026ca3bb6b6415de487e2836037d06f
tree09a7c59fd2d69938ac0b378f01960006637a785c
parent0bf02a0d80427f263195c1e5a4c8ada14bd5d261
perf inject: Add missing callbacks in perf_tool

I found some events (like PERF_RECORD_CGROUP) are not copied by perf
inject due to the missing callbacks.  Let's add them.

While at it, I've changed the order of the callbacks to match with
struct perf_tool so that we can compare them easily.

Acked-by: Jiri Olsa <jolsa@redhat.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20201012070214.2074921-3-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-inject.c