Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
cb247721
Commit
cb247721
authored
Jul 01, 2009
by
Avi Kivity
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KVM: Trace apic registers using their symbolic names
Signed-off-by:
Avi Kivity
<
avi@redhat.com
>
parent
aec51dc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
arch/x86/kvm/trace.h
arch/x86/kvm/trace.h
+12
-2
No files found.
arch/x86/kvm/trace.h
View file @
cb247721
...
@@ -111,6 +111,15 @@ TRACE_EVENT(kvm_cpuid,
...
@@ -111,6 +111,15 @@ TRACE_EVENT(kvm_cpuid,
__entry
->
rbx
,
__entry
->
rcx
,
__entry
->
rdx
)
__entry
->
rbx
,
__entry
->
rcx
,
__entry
->
rdx
)
);
);
#define AREG(x) { APIC_##x, "APIC_" #x }
#define kvm_trace_symbol_apic \
AREG(ID), AREG(LVR), AREG(TASKPRI), AREG(ARBPRI), AREG(PROCPRI), \
AREG(EOI), AREG(RRR), AREG(LDR), AREG(DFR), AREG(SPIV), AREG(ISR), \
AREG(TMR), AREG(IRR), AREG(ESR), AREG(ICR), AREG(ICR2), AREG(LVTT), \
AREG(LVTTHMR), AREG(LVTPC), AREG(LVT0), AREG(LVT1), AREG(LVTERR), \
AREG(TMICT), AREG(TMCCT), AREG(TDCR), AREG(SELF_IPI), AREG(EFEAT), \
AREG(ECTRL)
/*
/*
* Tracepoint for apic access.
* Tracepoint for apic access.
*/
*/
...
@@ -130,9 +139,10 @@ TRACE_EVENT(kvm_apic,
...
@@ -130,9 +139,10 @@ TRACE_EVENT(kvm_apic,
__entry
->
val
=
val
;
__entry
->
val
=
val
;
),
),
TP_printk
(
"apic_%s
0x%x
= 0x%x"
,
TP_printk
(
"apic_%s
%s
= 0x%x"
,
__entry
->
rw
?
"write"
:
"read"
,
__entry
->
rw
?
"write"
:
"read"
,
__entry
->
reg
,
__entry
->
val
)
__print_symbolic
(
__entry
->
reg
,
kvm_trace_symbol_apic
),
__entry
->
val
)
);
);
#define trace_kvm_apic_read(reg, val) trace_kvm_apic(0, reg, val)
#define trace_kvm_apic_read(reg, val) trace_kvm_apic(0, reg, val)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment