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

tcplife: add tcp:tcp_set_state tracepoint support #1508

Merged
merged 2 commits into from
Dec 31, 2017

Conversation

brendangregg
Copy link
Member

No description provided.

tools/tcplife.py Outdated
"""

if (os.path.exists(TRACEFS + "/events/tcp/tcp_set_state")):
bpf_text += bpf_text_tracepoint
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we have an API in bcc that enumerates tracepoints, so you could use that instead of the file check. If it doesn’t support checking for one specific tracepoint, maybe it should be added there — I think other tools might need it in the future.

@brendangregg
Copy link
Member Author

@goldshtn Good idea, pushed. I made it match one (and not a regexp), since I think that'll be the common case.

@yonghong-song yonghong-song merged commit 82ef5a0 into iovisor:master Dec 31, 2017
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.

None yet

3 participants