From b9f42186d389d5ed6bbc51917eace8304eea5bda Mon Sep 17 00:00:00 2001 From: Jean-Tiare Le Bigot Date: Sun, 30 Jul 2017 19:19:11 +0200 Subject: [PATCH] explain that 'args' can be used as 'ctx' in tracepoints --- docs/reference_guide.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/reference_guide.md b/docs/reference_guide.md index f727fdcb..b13af9d1 100644 --- a/docs/reference_guide.md +++ b/docs/reference_guide.md @@ -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 -- 2.34.1