Commit 6dc8ec89 authored by Max dml's avatar Max dml Committed by yonghong-song

fix exception message format in detach_kprobe_event() (#2089)

fix exception message format in detach_kprobe_event() 
parent 5167127c
......@@ -658,7 +658,7 @@ class BPF(object):
def detach_kprobe_event(self, ev_name):
if ev_name not in self.kprobe_fds:
raise Exception("Kprobe %s is not attached" % event)
raise Exception("Kprobe %s is not attached" % ev_name)
res = lib.bpf_close_perf_event_fd(self.kprobe_fds[ev_name])
if res < 0:
raise Exception("Failed to close kprobe FD")
......
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