Commit c46d3436 authored by Steven Rostedt (VMware)'s avatar Steven Rostedt (VMware) Committed by Greg Kroah-Hartman
Browse files

x86/cpu/vmware: Do not trace vmware_sched_clock()

commit 15035388 upstream.

When running function tracing on a Linux guest running on VMware
Workstation, the guest would crash. This is due to tracing of the
sched_clock internal call of the VMware vmware_sched_clock(), which
causes an infinite recursion within the tracing code (clock calls must
not be traced).

Make vmware_sched_clock() not traced by ftrace.

Fixes: 80e9a4f2

 ("x86/vmware: Add paravirt sched clock")
Reported-by: default avatarGwanYeong Kim <>
Signed-off-by: default avatarSteven Rostedt (VMware) <>
Signed-off-by: default avatarBorislav Petkov <>
CC: Alok Kataria <>
CC: GwanYeong Kim <>
CC: "H. Peter Anvin" <>
CC: Ingo Molnar <>
CC: Thomas Gleixner <>
CC: x86-ml <>

Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 9c6f231e
......@@ -77,7 +77,7 @@ static __init int setup_vmw_sched_clock(char *s)
early_param("no-vmw-sched-clock", setup_vmw_sched_clock);
static unsigned long long vmware_sched_clock(void)
static unsigned long long notrace vmware_sched_clock(void)
unsigned long long ns;
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