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

continue adding --ebpf option to the python tools/ scripts #1570

Merged
merged 2 commits into from
Feb 5, 2018

Conversation

natoscott
Copy link
Contributor

Several python tools allow their eBPF code to be printed to
stdout for debugging. There are other projects that would
like to share these program definitions however, instead of
duplicating code. We previously agreed on an --ebpf option
and we now continue adding it to more tools.

Signed-off-by: Nathan Scott [email protected]

Several python tools allow their eBPF code to be printed to
stdout for debugging.  There are other projects that would
like to share these program definitions however, instead of
duplicating code.  We previously agreed on an --ebpf option
and we now continue adding it to more tools.

Signed-off-by: Nathan Scott <[email protected]>
@yonghong-song
Copy link
Collaborator

[buildbot, ok to test]

@@ -128,8 +130,13 @@
}
"""

bpf_text.replace("MAXARG", args.max_args)
Copy link
Collaborator

Choose a reason for hiding this comment

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

You need bpf_text = bpf_text.replace(...). Otherwise, the statement has no effect and the tool will fail.

@brendangregg
Copy link
Member

other than @yonghong-song 's comment, LGTM.

Found by yonghong-song while reviewing PR iovisor#1570.

Signed-off-by: Nathan Scott <[email protected]>
@natoscott
Copy link
Contributor Author

@yonghong-song good catch - I've updated the PR with that fix.

@yonghong-song
Copy link
Collaborator

Looks good. Thanks.

@yonghong-song yonghong-song merged commit b334f11 into iovisor:master Feb 5, 2018
banh-gao pushed a commit to banh-gao/bcc that referenced this pull request Jun 21, 2018
Found by yonghong-song while reviewing PR iovisor#1570.

Signed-off-by: Nathan Scott <[email protected]>
CrackerCat pushed a commit to CrackerCat/bcc that referenced this pull request Jul 31, 2024
Found by yonghong-song while reviewing PR iovisor#1570.

Signed-off-by: Nathan Scott <[email protected]>
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