All of lore.kernel.org
 help / color / mirror / Atom feed
* + linux-kernel-markers-documentation-update-markerh.patch added to -mm tree
@ 2007-02-16 21:55 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2007-02-16 21:55 UTC (permalink / raw)
  To: mm-commits; +Cc: compudj, mathieu.desnoyers


The patch titled
     Linux Kernel Markers: Documentation update (marker.h)
has been added to the -mm tree.  Its filename is
     linux-kernel-markers-documentation-update-markerh.patch

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: Linux Kernel Markers: Documentation update (marker.h)
From: Mathieu Desnoyers <compudj@krystal.dyndns.org>

Add information about including marker.h in the documentation.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 Documentation/marker.txt |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff -puN Documentation/marker.txt~linux-kernel-markers-documentation-update-markerh Documentation/marker.txt
--- a/Documentation/marker.txt~linux-kernel-markers-documentation-update-markerh
+++ a/Documentation/marker.txt
@@ -34,6 +34,12 @@ variable by address that would be later 
 
 * Usage
 
+In order to use the macro MARK, you should include linux/marker.h.
+
+#include <linux/marker.h>
+
+Add, in your code :
+
 MARK(subsystem_event, "%d %s %p[struct task_struct]",
   someint, somestring, current);
 Where :
@@ -49,9 +55,6 @@ The expression %p[struct task_struct] is
 standard that could eventually be used for pointer type checking in
 sparse. The brackets contain the type to which the pointer refers.
 
-In order to use the macro MARK, you should include linux/marker.h or
-linux/kernel.h (which also includes linux/marker.h).
-
 Connecting a function (probe) to a marker is done by providing a probe
 (function to call) for the specific marker through marker_set_probe(). It will
 automatically connect the function and enable the marker site. Removing a probe
@@ -91,6 +94,7 @@ optimization can be disabled through men
 
 #include <linux/sched.h>
 #include <linux/kernel.h>
+#include <linux/marker.h>
 
 #define SUBSYSTEM_EVENT_FORMAT "%d %s %p[struct task_struct]"
 void probe_subsystem_event(const char *format, ...)
_

Patches currently in -mm which might be from compudj@krystal.dyndns.org are

origin.patch
atomich-atomic_add_unless-as-inline-remove-systemh-atomich-circular-dependency.patch
linux-kernel-markers-documentation-update-markerh.patch

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-16 21:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-16 21:55 + linux-kernel-markers-documentation-update-markerh.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.