Commit dfab8f5d authored by Sasha Goldshtein's avatar Sasha Goldshtein

python: Do not call USDT.get_text() twice

parent 2e7e2403
......@@ -221,7 +221,7 @@ class BPF(object):
"possible cause is missing pid when a " +
"probe in a shared object has multiple " +
"locations")
text = usdt_context.get_text() + text
text = usdt_text + text
if text:
self.module = lib.bpf_module_create_c_from_string(text.encode("ascii"),
......
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