trace: add DTrace reserved words for .d files
commit0b7e89b103b899c21b9ab37dbf9b832db8d18108
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 14 Aug 2014 10:39:23 +0000 (14 11:39 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 2 Mar 2015 21:39:43 +0000 (2 15:39 -0600)
treea803a43462a863d61c279535ea88f6a80f6f5d7c
parentba795761857082a9bb8c4be1f28e7cdd82f039b0
trace: add DTrace reserved words for .d files

DTrace on Mac OS X fails due to trace events using 'self' as an argument
name:

  GEN   trace/generated-tracers-dtrace.h
dtrace: failed to compile script trace/generated-tracers-dtrace.dtrace: line 1330: syntax error, unexpected DT_KEY_SELF, expecting ) near "self"
make: *** [trace/generated-tracers-dtrace.h] Error 1

Filter argument names according to the list of DTrace .d file reserved
keywords.

Note that DTrace on Mac and Linux still do not work after this patch.
There are additional build issues remaining.

Reported-by: Henk Poley <henkpoley@gmail.com>
Tested-by: Henk Poley <henkpoley@gmail.com>
Cc: LluĂ­s Vilanova <vilanova@ac.upc.edu>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
scripts/tracetool/format/d.py