diff options
author | Steven Rostedt <srostedt@redhat.com> | 2013-02-27 20:41:37 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2013-03-15 00:34:47 -0400 |
commit | 92edca073c374f66b8eee20ec6426fb0cdb6c4d5 (patch) | |
tree | 1422d988954e16eae32003738b532e8ec8db9051 /kernel/trace/trace.h | |
parent | d1a291437f75f6c841819b7855d95a21958cc822 (diff) | |
download | blackbird-op-linux-92edca073c374f66b8eee20ec6426fb0cdb6c4d5.tar.gz blackbird-op-linux-92edca073c374f66b8eee20ec6426fb0cdb6c4d5.zip |
tracing: Use direct field, type and system names
The names used to display the field and type in the event format
files are copied, as well as the system name that is displayed.
All these names are created by constant values passed in.
If one of theses values were to be removed by a module, the module
would also be required to remove any event it created.
By using the strings directly, we can save over 100K of memory.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index b825ea2d8c64..e420f2a230de 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h @@ -887,8 +887,8 @@ enum { struct ftrace_event_field { struct list_head link; - char *name; - char *type; + const char *name; + const char *type; int filter_type; int offset; int size; |