Commit b9f42186 authored by Jean-Tiare Le Bigot's avatar Jean-Tiare Le Bigot Committed by Brenden Blanco

explain that 'args' can be used as 'ctx' in tracepoints

parent c38cb7ac
......@@ -141,6 +141,8 @@ This is a macro that instruments the tracepoint defined by *category*:*event*.
Arguments are available in an ```args``` struct, which are the tracepoint arguments. One way to list these is to cat the relevant format file under /sys/kernel/debug/tracing/events/*category*/*event*/format.
The ```args``` struct can be used in place of ``ctx`` in each functions requiring a context as an argument. This includes notably [perf_submit()](#3-perf_submit).
For example:
```C
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment