Skip to content
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: take into account the result of Probe::enable() #2006

Merged
merged 1 commit into from
Oct 9, 2018

Conversation

zilder
Copy link
Contributor

@zilder zilder commented Oct 9, 2018

Hi,

Currently Context::enable_probe() discards the result of Probe::enable() even if it fails. This is something that I've already mentioned in #1998 (it didn't show any warning when tried to read semaphore value from unreadable memory location). Today I hit another case when I tried to setup USDT context by passing only path to binary without specifying PID. Here is a tiny patch that fixes this.

@palmtenor
Copy link
Member

[buildbot, test this please]

@palmtenor
Copy link
Member

LGTM

@yonghong-song yonghong-song merged commit ec3fe90 into iovisor:master Oct 9, 2018
CrackerCat pushed a commit to CrackerCat/bcc that referenced this pull request Jul 31, 2024
Fixed Context::enable_probe method so that it does not discard the result of Probe::enable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants