forked from iovisor/bcc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
uprobe: Add ref_cnt_offset arg to bpf_attach_uprobe
This argument allows callers to tell the kernel to manage USDT semaphore counts. It's better than fiddling with the counts in userspace b/c if the userspace program crashes then the semaphore count does not get decremented. It's also better b/c the kernel can activate the semaphore for all processes that have the target mapped into memory. Currently with bcc, you have to provide the pid of each process you want to activate a semaphore for and then bcc will go poke /proc/pid/mem at the right offset.
- Loading branch information
Showing
4 changed files
with
19 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters