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

Inject delay? #2336

Open
adam900710 opened this issue May 2, 2019 · 2 comments
Open

Inject delay? #2336

adam900710 opened this issue May 2, 2019 · 2 comments

Comments

@adam900710
Copy link

adam900710 commented May 2, 2019

To my understanding, injecting delay into kernel kprobe point is not supported yet due to 2 factors:

  • No way to sleep in BPF context

  • Injecting delay needs kernel developer to define where injection is possible

Unlike regular kprobe where we can only do RO operations, injecting delay, especially sleepable delay can easily screw up locking schema, e.g. injecting context switch into function with spinlock hold.

So my question is:
Is bcc/bpf going to support such injection in their road map?

With that, it should be super useful to debug race related bug.

Thanks.

@yonghong-song
Copy link
Collaborator

No, as far as I know, bpf community has not discussed this yet. This probably needs to be similar to injection such that a developer buy-in is needed. Also not sure how this could be implemented as sleep/block is not allowed in bpf program context. So this has to be happen outside the preempt_disable region. So this is probably not a bpf issue.

@Anjali05
Copy link

Anjali05 commented May 4, 2023

Has this been implemented yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants