summaryrefslogtreecommitdiff
path: root/overlay/tracepoint_format.leg
AgeCommit message (Collapse)Author
2018-02-01overlay: fix invalid pointer accessLionel Landwerlin
The 'v' variable isn't defined in this part of the 'TracepointFmt' rule but because of the way the generator produces code (one function per rule) it doesn't realize we're accessing a variable from a different case of the rule and this doesn't lead to a C compiler error on undefined variable. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
2018-02-01overlay: reindent tracepoint parserLionel Landwerlin
I wrote it, but couldn't reread myself... This doesn't contain any change apart from reindenting. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-12-22overlay: parse tracepoints from sysfs to figure out fields' locationLionel Landwerlin
With changes going to drm-tip, the tracepoints field locations are going to change. This change introduces a tracepoint parser (using a peg parser) which lets us figure out field positions on the fly. v2: Fix automake build (Lionel) v3: Make overlay build conditional on peg (Petri) Make wait_end callback more readable (Chris) Drop tracepoint_id(), instead parsing from format file (Lionel) v4: Fix existing configure.ac issue with overlay build (Petri) v5: Silence unused function (Lionel) v6: Fix missing double quote in v4 (Lionel) Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Acked-by: Chris Wilson <chris@chris-wilson.co.uk> For the build system changes: Acked-by: Petri Latvala <petri.latvala@intel.com>