diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2015-04-01 14:19:06 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2015-04-07 12:31:39 -0400 |
commit | bd41202214f8e89db3a64f8031d29d081f268190 (patch) | |
tree | cf4ed149a7dae37c35323f29951c0975c2777a7a | |
parent | 882156e0407f06ca3d4c6500a7d347c3a2ed88b4 (diff) |
tracing: Add TRACE_SYSTEM_VAR to kvm-s390
New code will require TRACE_SYSTEM to be a valid C variable name,
but some tracepoints have TRACE_SYSTEM with '-' and not '_', so
it can not be used. Instead, add a TRACE_SYSTEM_VAR that can
give the tracing infrastructure a unique name for the trace system.
Link: http://lkml.kernel.org/r/20150402111500.5e52c1ed.cornelia.huck@de.ibm.com
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: David Hildenbrand <dahi@linux.vnet.ibm.com>
Cc: Christian Borntraeger <borntraeger@de.ibm.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Reviewed-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Tested-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | arch/s390/kvm/trace-s390.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/s390/kvm/trace-s390.h b/arch/s390/kvm/trace-s390.h index 653a7ec09ef5..3208d33a48cb 100644 --- a/arch/s390/kvm/trace-s390.h +++ b/arch/s390/kvm/trace-s390.h | |||
@@ -10,6 +10,13 @@ | |||
10 | #define TRACE_INCLUDE_FILE trace-s390 | 10 | #define TRACE_INCLUDE_FILE trace-s390 |
11 | 11 | ||
12 | /* | 12 | /* |
13 | * The TRACE_SYSTEM_VAR defaults to TRACE_SYSTEM, but must be a | ||
14 | * legitimate C variable. It is not exported to user space. | ||
15 | */ | ||
16 | #undef TRACE_SYSTEM_VAR | ||
17 | #define TRACE_SYSTEM_VAR kvm_s390 | ||
18 | |||
19 | /* | ||
13 | * Trace point for the creation of the kvm instance. | 20 | * Trace point for the creation of the kvm instance. |
14 | */ | 21 | */ |
15 | TRACE_EVENT(kvm_s390_create_vm, | 22 | TRACE_EVENT(kvm_s390_create_vm, |