Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check if CI regression is due to missing *mutex_lock* symbols in compiled kernel #877

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions scheds/rust/scx_lavd/src/bpf/lock.bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ int BPF_PROG(fexit_up, struct semaphore *sem)
*/
#ifdef LAVD_TRACE_MUTEX
struct mutex;
SEC("fexit/mutex_lock")
SEC("fexit/mutex_lock_nested")
int BPF_PROG(fexit_mutex_lock, struct mutex *mutex)
{
/*
Expand All @@ -201,7 +201,7 @@ int BPF_PROG(fexit_mutex_lock, struct mutex *mutex)
return 0;
}

SEC("fexit/mutex_lock_interruptible")
SEC("fexit/mutex_lock_interruptible_nested")
int BPF_PROG(fexit_mutex_lock_interruptible, struct mutex *mutex, int ret)
{
if (ret == 0) {
Expand All @@ -213,7 +213,7 @@ int BPF_PROG(fexit_mutex_lock_interruptible, struct mutex *mutex, int ret)
return 0;
}

SEC("fexit/mutex_lock_killable")
SEC("fexit/mutex_lock_killable_nested")
int BPF_PROG(fexit_mutex_lock_killable, struct mutex *mutex, int ret)
{
if (ret == 0) {
Expand Down 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
Loading