Skip to content

Commit

Permalink
Move open_{kprobes,uprobes,tracepoints} into BPF object
Browse files Browse the repository at this point in the history
* for iovisor#605, this diff moves probe storage from the BPF module to the BPF object,
  letting each instantiation clean up its own probes. A module-level counter
  for all open probes is provided for the quota check. It also adds a
  `cleanup()` function to force cleanup before the `atexit` handler runs.

* for iovisor#614, it removes the `len(open_kprobes) == 0` check that prevented more
  than one autoload probe working. It fixes the tests that this change breaks by
  calling the `cleanup()` function added.
  • Loading branch information
Mark Drayton committed Jul 17, 2016
1 parent 8fa8c0e commit cb679d7
Show file tree
Hide file tree
Showing 5 changed files with 155 additions and 106 deletions.
Loading

0 comments on commit cb679d7

Please sign in to comment.