16 Sep, 2009
1 commit
-
Default directory of debug filesystem for ftrace is /sys/kernel/debug/.
Signed-off-by: GeunSik Lim
Signed-off-by: Greg Kroah-Hartman
13 Jul, 2009
1 commit
-
If TRACE_INCLDUE_FILE is defined,
will be included and compiled, otherwise it will beSo TRACE_SYSTEM should be defined outside of #if proctection,
just like TRACE_INCLUDE_FILE.Imaging this scenario:
#include
-> TRACE_SYSTEM == foo
...
#include
-> TRACE_SYSTEM == bar
...
#define CREATE_TRACE_POINTS
#include
-> TRACE_SYSTEM == bar !!!and then bar.h will be included and compiled.
Signed-off-by: Li Zefan
Cc: Steven Rostedt
Cc: Frederic Weisbecker
LKML-Reference:
Signed-off-by: Ingo Molnar
17 Jun, 2009
1 commit
-
The comments in the sample code is a bit confusing. This patch
cleans them up a little.Signed-off-by: Steven Rostedt
07 May, 2009
1 commit
-
When creating trace events for ftrace, the header file with the TRACE_EVENT
macros must also have a macro called TRACE_SYSTEM. This macro describes
the name of the system the TRACE_EVENTS are defined for. It also doubles
as a way for the define_trace.h file to include the file that included
it.For example:
in irq.h
#define TRACE_SYSTEM irq
[...]
#include
The define_trace will use TRACE_SYSTEM to include irq.h. But if the name
of the trace system does not match the name of the trace header file,
one can override it with:Which will change define_trace.h to inclued foo_trace.h instead of foo.h
The sample comments this, but people that use the sample code will more
likely use the code and not read the comments. This patch changes the
sample code to use the TRACE_INCLUDE_FILE to better show developers how to
use it.[ Impact: make sample less confusing to developers ]
Reported-by: Christoph Hellwig
Signed-off-by: Steven Rostedt
06 May, 2009
2 commits
-
Use -I$(src) to add the current directory the include path.
[ Impact: cleanup ]
Signed-off-by: Christoph Hellwig
Acked-by: Steven Rostedt
LKML-Reference:
Signed-off-by: Ingo Molnar -
The sample is useful for testing, and I'm using it. But after
loading the module, it keeps saying hi every 10 seconds, this may
be disturbing.Also Steven said commenting out the "hi" helped in causing races. :)
[ Impact: make testing a bit easier ]
Signed-off-by: Li Zefan
Acked-by: Steven Rostedt
Acked-by: Frederic Weisbecker
LKML-Reference:
Signed-off-by: Ingo Molnar
15 Apr, 2009
1 commit
-
This patch adds a sample to the samples directory on how to create
and use TRACE_EVENT trace points.Signed-off-by: Steven Rostedt