diff --git a/tests/python/test_tools_smoke.py b/tests/python/test_tools_smoke.py index ec5d70e2ad7c..0eb9eea00faf 100755 --- a/tests/python/test_tools_smoke.py +++ b/tests/python/test_tools_smoke.py @@ -66,7 +66,7 @@ def tearDown(self): pass def test_argdist(self): - self.run_with_duration("argdist.py -C 'p::do_sys_open()' -n 1 -i 1") + self.run_with_duration("argdist.py -v -C 'p::do_sys_open()' -n 1 -i 1") @skipUnless(kernel_version_ge(4,4), "requires kernel >= 4.4") def test_bashreadline(self): diff --git a/tools/argdist.py b/tools/argdist.py index dfb06b46c046..9192120aa628 100755 --- a/tools/argdist.py +++ b/tools/argdist.py @@ -681,8 +681,8 @@ def _attach(self): for probe in self.probes: probe.attach(self.bpf) if self.args.verbose: - print("open uprobes: %s" % self.bpf.open_uprobes) - print("open kprobes: %s" % self.bpf.open_kprobes) + print("open uprobes: %s" % list(self.bpf.uprobe_fds.keys())) + print("open kprobes: %s" % list(self.bpf.kprobe_fds.keys())) def _main_loop(self): count_so_far = 0