Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f08340c5 authored by Nikanth Karthikesan's avatar Nikanth Karthikesan Committed by Ingo Molnar
Browse files

tracepoints: Documentation TPPROTO misspelt in Documentation/tracepoints.txt



Impact: fix typo in documentation

TPPROTO is misspelt in Documentation/tracepoints.txt
Kept me wondering what was wrong, when I was trying to add a new tracepoint
subsystem.

Signed-off-by: default avatarNikanth Karthikesan <knikanth@suse.de>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent c7cc7730
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -45,7 +45,7 @@ In include/trace/subsys.h :
#include <linux/tracepoint.h>
#include <linux/tracepoint.h>


DECLARE_TRACE(subsys_eventname,
DECLARE_TRACE(subsys_eventname,
	TPPTOTO(int firstarg, struct task_struct *p),
	TPPROTO(int firstarg, struct task_struct *p),
	TPARGS(firstarg, p));
	TPARGS(firstarg, p));


In subsys/file.c (where the tracing statement must be added) :
In subsys/file.c (where the tracing statement must be added) :
@@ -66,7 +66,7 @@ Where :
    - subsys is the name of your subsystem.
    - subsys is the name of your subsystem.
    - eventname is the name of the event to trace.
    - eventname is the name of the event to trace.


- TPPTOTO(int firstarg, struct task_struct *p) is the prototype of the
- TPPROTO(int firstarg, struct task_struct *p) is the prototype of the
  function called by this tracepoint.
  function called by this tracepoint.


- TPARGS(firstarg, p) are the parameters names, same as found in the
- TPARGS(firstarg, p) are the parameters names, same as found in the