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>
Tue, 28 Nov 2017 17:27:05 +0000 (14:27 -0300)
commit34900ec5c9577cc1b0f22887ac7349f458ba8ac2
tree487abae1dd2bca479a2c4792f6dda98c4941f751
parentdf7ccfa21ef343c602ae4aa1eb7893da4408b219
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