Skip to content

Commit

Permalink
python: Do not call USDT.get_text() twice
Browse files Browse the repository at this point in the history
  • Loading branch information
goldshtn committed Dec 19, 2016
1 parent 2e7e240 commit dfab8f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/bcc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def __init__(self, src_file="", hdr_file="", text=None, cb=None, debug=0,
"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"),
Expand Down

0 comments on commit dfab8f5

Please sign in to comment.