Inject delay?
- Dominant language
- C
- Stars
- 22.7k
- Forks
- 4.1k
- Avg merge
- 5d 13h
- Merged PRs (30d)
- 3
Description
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.
Contributor guide
No contributing guide indexed for this repository
Research direction
No implementation files, tests, or entry points are named. Clarify whether BCC/BPF should support delay injection, including the allowed kprobe contexts and acceptance criteria, before identifying implementation work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux
- Domain
- operating-systems, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100