Thread (1 message) 1 message, 1 author, 2024-05-30

Re: How to trace kvm:kvm_exit using fprobe?

From: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Date: 2024-05-30 12:57:22

Hi don,

Thanks for reporting!
I confirmed that the raw tracepoint probe event does not work on
the tracepoint in the module. (not only kvm but also other modules)

Let me fix the issue.

Thank you,

On Tue, 21 May 2024 17:28:48 -0700
don [off-list ref] wrote:
Hi,  Mr Masami Hiramatsu,
I see your presentation "Function Parameters with BTF Function tracing with
parameters",
and I started using fprobe and dynamic_events to trace functions.

I have a question regarding tracepoints using fprobe/dynamic_events
I can trace the kvm:kvm_exit event using trace-cmd:

*trace-cmd stream -e kvm:kvm_exit*
But if I echo to dynamic_event will get "Invalid argument" error:
# cd /sys/kernel/debug/tracing

*# echo 't:kvm kvm_exit' >> dynamic_events*-bash: echo: write error:
Invalid argument

How to solve this problem?

Thanks,
don

-- 
Masami Hiramatsu (Google) [off-list ref]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help