Skip to content

Commit

Permalink
test again, this time by changing the trace points to the potential s…
Browse files Browse the repository at this point in the history
…ymbols
  • Loading branch information
Emil Tsalapatis committed Nov 1, 2024
1 parent 08e53ef commit 24b8e41
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/sched-ext.config
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ CONFIG_PREEMPTION=y
CONFIG_PREEMPT_DYNAMIC=y
CONFIG_PREEMPT_RCU=y

# Additional debugging information (useful to catch potential locking issues)
#
CONFIG_DEBUG_LOCKDEP=y
CONFIG_DEBUG_ATOMIC_SLEEP=y
CONFIG_PROVE_LOCKING=y

# Bpftrace headers (for additional debug info)
CONFIG_BPF=y
CONFIG_BPF_SYSCALL=y
Expand Down
6 changes: 3 additions & 3 deletions scheds/rust/scx_lavd/src/bpf/lock.bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ int BPF_PROG(fexit_ww_mutex_unlock, struct ww_mutex *lock)
#ifdef LAVD_TRACE_RT_MUTEX
struct rt_mutex;

SEC("fexit/rt_mutex_lock")
SEC("fexit/rt_mutex_lock_nested")
int BPF_PROG(fexit_rt_mutex_lock, struct rt_mutex *lock)
{
/*
Expand All @@ -320,7 +320,7 @@ int BPF_PROG(fexit_rt_mutex_lock, struct rt_mutex *lock)
return 0;
}

SEC("fexit/rt_mutex_lock_interruptible")
SEC("fexit/rt_mutex_lock_interruptible_nested")
int BPF_PROG(fexit_rt_mutex_lock_interruptible, struct rt_mutex *lock, int ret)
{
if (ret == 0) {
Expand All @@ -332,7 +332,7 @@ int BPF_PROG(fexit_rt_mutex_lock_interruptible, struct rt_mutex *lock, int ret)
return 0;
}

SEC("fexit/rt_mutex_lock_killable")
SEC("fexit/rt_mutex_lock_killable_nested")
int BPF_PROG(fexit_rt_mutex_lock_killable, struct rt_mutex *lock, int ret)
{
if (ret == 0) {
Expand Down

0 comments on commit 24b8e41

Please sign in to comment.