perf: Fix header.size for namespace events
authorJiri Olsa <jolsa@kernel.org>
Wed, 9 Aug 2017 16:14:06 +0000 (18:14 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 16 Nov 2017 17:50:04 +0000 (14:50 -0300)
commit742015ff12ae27324b8ad2d28e43da6743529bad
tree7db7c823df2acc46fb98fc1f05b9b4ae9ec20d0a
parent38ba1daf8164d43d48b45c8e8deee4b20c21484d
perf: Fix header.size for namespace events

Reset header size for namespace events, otherwise it only gets bigger in
ctx iterations.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Fixes: e422267322cd ("perf: Add PERF_RECORD_NAMESPACES to include namespaces related info")
Link: http://lkml.kernel.org/n/tip-nlo4gonz9d4guyb8153ukzt0@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
kernel/events/core.c