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

Update the tutorial to match what is currently in the examples #2061

Merged
merged 1 commit into from
Nov 28, 2018

Conversation

wcohen
Copy link
Contributor

@wcohen wcohen commented Nov 27, 2018

There have been some updates the code in the examples. The tutorial
text should match up with the current example code. In particular we
want to make ensure that the probe for the syscall functions match up
with what is currently needed for newer kernels that do not have
syscall functions uniformly start with "sys_".

There have been some updates the code in the examples.  The tutorial
text should match up with the current example code. In particular we
want to make ensure that the probe for the syscall functions match up
with what is currently needed for newer kernels that do not have
syscall functions uniformly start with "sys_".
bpf_trace_printk("Hello, World!\\n");
return 0;
bpf_trace_printk("Hello, World!\\n");
return 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason you changed all indentations?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The patch copied over what the example codes currently have and that indentation is what the examples currently have. However, commit 44ad8a1 for docs/tutorial_bcc_python_developer.md the comment says:

Always use spaces in C in the tutorial

There are still tabs in tutorial_bcc_python_developer.md. Should the remaining tabs in the patch be converted to spaces to be consistent?

@yonghong-song
Copy link
Collaborator

[buildbot, test this please]

@yonghong-song
Copy link
Collaborator

The change looks good. Thanks for the change!

@yonghong-song yonghong-song merged commit a07ab90 into iovisor:master Nov 28, 2018
arighi pushed a commit to arighi/bcc that referenced this pull request Dec 12, 2018
…or#2061)

There have been some updates the code in the examples.  The tutorial
text should match up with the current example code. In particular we
want to make ensure that the probe for the syscall functions match up
with what is currently needed for newer kernels that do not have
syscall functions uniformly start with "sys_".
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