cc: Rewrite probe functions that refer to tracepoint structures
authorSasha Goldshtein <goldshtn@gmail.com>
Tue, 5 Jul 2016 16:34:56 +0000 (09:34 -0700)
committerSasha Goldshtein <goldshtn@gmail.com>
Sat, 9 Jul 2016 12:19:12 +0000 (05:19 -0700)
commitfab68e3a76771e4ae809f8606e4080a0c365c5d1
treee3634320f3e5d0cb88967949312d838eff7989ed
parent619fc1402cf2e8cfc67caffb0dfa6f0683ec511e
cc: Rewrite probe functions that refer to tracepoint structures

When a probe function refers to a tracepoint arguments structure,
such as `struct tracepoint__irq__irq_handler_entry`, add that structure
on-the-fly using a Clang frontend action that runs before any other
steps take place.

Typically, the user will create tracepoint probe functions using
the TRACEPOINT_PROBE macro, which avoids the need for specifying
the tracepoint category and event twice in the signature of the
probe function.
src/cc/export/helpers.h
src/cc/frontends/clang/CMakeLists.txt
src/cc/frontends/clang/b_frontend_action.cc
src/cc/frontends/clang/loader.cc
src/cc/frontends/clang/tp_frontend_action.cc [new file with mode: 0644]
src/cc/frontends/clang/tp_frontend_action.h [new file with mode: 0644]
src/python/bcc/__init__.py