Commit 346b2762 authored by Alexander Graf's avatar Alexander Graf Committed by Benjamin Herrenschmidt

Fix trace.h

It looks like the variable "pc" is defined. At least the current code always
failed on me stating that "pc" is already defined somewhere else.

Let's use _pc instead, because that doesn't collide.

Is this the right approach? Does it break on 440 too? If not, why not?
Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent c4f9c779
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
* Tracepoint for guest mode entry. * Tracepoint for guest mode entry.
*/ */
TRACE_EVENT(kvm_ppc_instr, TRACE_EVENT(kvm_ppc_instr,
TP_PROTO(unsigned int inst, unsigned long pc, unsigned int emulate), TP_PROTO(unsigned int inst, unsigned long _pc, unsigned int emulate),
TP_ARGS(inst, pc, emulate), TP_ARGS(inst, _pc, emulate),
TP_STRUCT__entry( TP_STRUCT__entry(
__field( unsigned int, inst ) __field( unsigned int, inst )
...@@ -23,7 +23,7 @@ TRACE_EVENT(kvm_ppc_instr, ...@@ -23,7 +23,7 @@ TRACE_EVENT(kvm_ppc_instr,
TP_fast_assign( TP_fast_assign(
__entry->inst = inst; __entry->inst = inst;
__entry->pc = pc; __entry->pc = _pc;
__entry->emulate = emulate; __entry->emulate = emulate;
), ),
......
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