perf/core: Do not pass header for sample ID init
authorNamhyung Kim <namhyung@kernel.org>
Wed, 18 Jan 2023 06:05:57 +0000 (22:05 -0800)
committerIngo Molnar <mingo@kernel.org>
Wed, 18 Jan 2023 10:57:20 +0000 (11:57 +0100)
commita7c8d0daa87581cab8435c83cc6ecbfbcb8b60cf
tree1d34b17867f59abd484458018ce7e568b94a5645
parentbb447c27a4674628ea50341cfa4b31618f2010af
perf/core: Do not pass header for sample ID init

The only thing it does for header in __perf_event_header__init_id() is
to update the header size with event->id_header_size.  We can do this
outside and get rid of the argument for the later change.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Tested-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: Song Liu <song@kernel.org>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20230118060559.615653-7-namhyung@kernel.org
kernel/events/core.c