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

Add a few trace.py examples in tutorial.md #1543

Merged
merged 1 commit into from
Jan 22, 2018
Merged

Add a few trace.py examples in tutorial.md #1543

merged 1 commit into from
Jan 22, 2018

Conversation

yonghong-song
Copy link
Collaborator

I added a few trace.py examples in tutorial.md which I encountered inside Facebook. I thought they are useful to give people a sense how trace.py may help them solve their particular issue without writing a full-fledged python/C++ BCC programs. In the future, more examples about trace.py, argdist.py, funccount.py can be added based on real use cases.

cc @brendangregg @goldshtn Please review and suggest a better place if you think tutorial.md is not appropriate.

Signed-off-by: Yonghong Song yhs@fb.com

Copy link
Collaborator

@goldshtn goldshtn left a comment

Choose a reason for hiding this comment

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

This is really great! Specific examples based on real-life situations are the best illustration we could put in a tutorial.

docs/tutorial.md Outdated

##### Example 3

This example is related to issue [1231](https://github.com/iovisor/bcc/issues/1231) and [1516](https://github.com/iovisor/bcc/issues/1516) where uprobe does not working at all in certain cases. First, you can do a `strace` as below
Copy link
Contributor

Choose a reason for hiding this comment

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

does not work at all?

Signed-off-by: Yonghong Song <yhs@fb.com>
@yonghong-song
Copy link
Collaborator Author

@pchaigno Thanks for reviewing. Just fixed the syntax issue and updated the commit.

@4ast 4ast merged commit a44d26e into master Jan 22, 2018
@brendangregg
Copy link
Member

thanks; yes, we can put some selected examples in this file, and the _example.txt files contain all the examples for tools. I need to remember to add to here and/or _example.txt as I use the tools in production.

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.

5 participants