Commit 6ceb2518 authored by Suchakra Sharma's avatar Suchakra Sharma

A more suitable function mame

parent 0bde502c
......@@ -736,8 +736,8 @@ class BPF(object):
return ksym_names[idx] + hex(offset)
@staticmethod
def get_open_kprobes():
""" get_open_kprobes()
def num_open_kprobes():
"""num_open_kprobes()
Get the number of open K[ret]probes. Can be useful for scenarios where
event_re is used while attaching and detaching probes
......
......@@ -22,7 +22,7 @@ class TestKprobeCnt(TestCase):
for line in f:
if str(line).startswith("vfs_"):
actual_cnt += 1
open_cnt = self.b.get_open_kprobes()
open_cnt = self.b.num_open_kprobes()
self.assertEqual(actual_cnt, open_cnt)
if __name__ == "__main__":
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment