Skip to contentSkip to conversation

How to trace kvm:kvm_exit using fprobe?

DISCUSSION Masami Hiramatsu (Google) 1 participant 1 message May 30, 2024 1 message not in the archive Tracing

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): CAH8woH1vBJSZOD=ZXVRt8NOPfi89gWbKmpHGJZVs=Wqj00DG7Q@mail.gmail.com

Masami Hiramatsu (Google)

author maintainer
#1 lore raw

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,

Quoted 19 lines · On Tue, 21 May 2024 17:28:48 -0700 don <[email protected]> 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

Signature · 1 line
Masami Hiramatsu (Google) <[email protected]>