Commit 67b394f7 authored by Jiri Olsa's avatar Jiri Olsa Committed by Ingo Molnar

tracing: Fix comment typo and documentation example

Trivial patch to fix a documentation example and to fix a
comment.
Signed-off-by: default avatarJiri Olsa <jolsa@redhat.com>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <20091023233646.871719877@goodmis.org>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 3e69533b
...@@ -1231,6 +1231,7 @@ something like this simple program: ...@@ -1231,6 +1231,7 @@ something like this simple program:
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>
#include <string.h>
#define _STR(x) #x #define _STR(x) #x
#define STR(x) _STR(x) #define STR(x) _STR(x)
...@@ -1265,6 +1266,7 @@ const char *find_debugfs(void) ...@@ -1265,6 +1266,7 @@ const char *find_debugfs(void)
return NULL; return NULL;
} }
strcat(debugfs, "/tracing/");
debugfs_found = 1; debugfs_found = 1;
return debugfs; return debugfs;
......
...@@ -2681,7 +2681,7 @@ unsigned long ring_buffer_entries(struct ring_buffer *buffer) ...@@ -2681,7 +2681,7 @@ unsigned long ring_buffer_entries(struct ring_buffer *buffer)
EXPORT_SYMBOL_GPL(ring_buffer_entries); EXPORT_SYMBOL_GPL(ring_buffer_entries);
/** /**
* ring_buffer_overrun_cpu - get the number of overruns in buffer * ring_buffer_overruns - get the number of overruns in buffer
* @buffer: The ring buffer * @buffer: The ring buffer
* *
* Returns the total number of overruns in the ring buffer * Returns the total number of overruns in the ring buffer
......
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