]> git.baikalelectronics.ru Git - kernel.git/commit
perf trace: Ignore "overwrite" field if present in /events/header_page
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 5 Apr 2010 21:01:10 +0000 (18:01 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 8 Apr 2010 14:34:26 +0000 (11:34 -0300)
commitd1c4279add13860aa2e5ac2b46f667e6e9ee02c1
tree950e87eb9870450f94e10c598eb320f450ff16ca
parenta2eb16455121545ccdd75f89192ce7aaa7b4dd0a
perf trace: Ignore "overwrite" field if present in /events/header_page

That is not used in perf where we have the LOST events.

Without this patch we get:

[root@doppio ~]# perf lock report | head -3
  Warning: Error: expected 'data' but read 'overwrite'

So, to make the same perf command work with kernels with and without
this field, introduce variants for the parsing routines to not warn the
user in such case.

Discussed-with: Steven Rostedt <rostedt@goodmis.org>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/trace-event-parse.c