-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
USDT Python API and example #624
Conversation
lgtm, but I'm not a python guy. @markdrayton could you please review? |
return normalized | ||
def enable_probe(self, probe, fn_name): | ||
if lib.bcc_usdt_enable_probe(self.context, probe, fn_name) != 0: | ||
raise Exception("failed to enable probe '%s'", probe) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be %
instead of ,
otherwise we throw a tuple:
$ sudo python ../examples/tracing/nodejs_http_server.py 25549
..
Exception: ("failed to enable probe '%s'", 'http__server__request')
Looks good but I am still trying to test it locally. It looks like tplist.py and trace.py need updating to not call USDTReader now it was replaced with USDT:
Trivially replacing USDTReader with USDT shows at least one more snag:
|
Alrighty then. LGTM! |
@goldshtn tplist and trace are still broken... |
Sorry, it's been a crazy summer. Still on my list. |
Code from @vmg