explain that 'args' can be used as 'ctx' in tracepoints
authorJean-Tiare Le Bigot <jt@yadutaf.fr>
Sun, 30 Jul 2017 17:19:11 +0000 (19:19 +0200)
committerBrenden Blanco <bblanco@gmail.com>
Fri, 11 Aug 2017 15:26:17 +0000 (08:26 -0700)
docs/reference_guide.md

index f727fdc..b13af9d 100644 (file)
@@ -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