Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
ae8c1c40
Commit
ae8c1c40
authored
Jul 01, 2009
by
Avi Kivity
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KVM: Trace irq level and source id
Signed-off-by:
Avi Kivity
<
avi@redhat.com
>
parent
27c4ba60
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
include/trace/events/kvm.h
include/trace/events/kvm.h
+8
-3
virt/kvm/irq_comm.c
virt/kvm/irq_comm.c
+1
-1
No files found.
include/trace/events/kvm.h
View file @
ae8c1c40
...
...
@@ -9,18 +9,23 @@
#if defined(__KVM_HAVE_IOAPIC)
TRACE_EVENT
(
kvm_set_irq
,
TP_PROTO
(
unsigned
int
gsi
),
TP_ARGS
(
gsi
),
TP_PROTO
(
unsigned
int
gsi
,
int
level
,
int
irq_source_id
),
TP_ARGS
(
gsi
,
level
,
irq_source_id
),
TP_STRUCT__entry
(
__field
(
unsigned
int
,
gsi
)
__field
(
int
,
level
)
__field
(
int
,
irq_source_id
)
),
TP_fast_assign
(
__entry
->
gsi
=
gsi
;
__entry
->
level
=
level
;
__entry
->
irq_source_id
=
irq_source_id
;
),
TP_printk
(
"gsi %u"
,
__entry
->
gsi
)
TP_printk
(
"gsi %u level %d source %d"
,
__entry
->
gsi
,
__entry
->
level
,
__entry
->
irq_source_id
)
);
...
...
virt/kvm/irq_comm.c
View file @
ae8c1c40
...
...
@@ -126,7 +126,7 @@ int kvm_set_irq(struct kvm *kvm, int irq_source_id, int irq, int level)
unsigned
long
*
irq_state
,
sig_level
;
int
ret
=
-
1
;
trace_kvm_set_irq
(
irq
);
trace_kvm_set_irq
(
irq
,
level
,
irq_source_id
);
WARN_ON
(
!
mutex_is_locked
(
&
kvm
->
irq_lock
));
...
...
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