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

Fix breakage in open_perf_buffer #392

Merged
merged 1 commit into from
Feb 17, 2016
Merged

Fix breakage in open_perf_buffer #392

merged 1 commit into from
Feb 17, 2016

Conversation

drzaeus77
Copy link
Collaborator

The previous commit for splitting table.py into a separate file lost
some required imports. Add those back.

In addition, add a test for open_perf_buffer, and take out the
compile-time check in libbpf.c for this feature.

I couldn't think of a good way to fix the PERF_COUNT_SW_BPF_OUTPUT
literal, so for now left it as a comment. A #define wouldn't work since
the eventual value comes from an enum (no #ifndef/#define/#endif
pattern).

Fixes: #391 #363
Signed-off-by: Brenden Blanco [email protected]

The previous commit for splitting table.py into a separate file lost
some required imports. Add those back.

In addition, add a test for open_perf_buffer, and take out the
compile-time check in libbpf.c for this feature.

I couldn't think of a good way to fix the PERF_COUNT_SW_BPF_OUTPUT
literal, so for now left it as a comment. A #define wouldn't work since
the eventual value comes from an enum (no #ifndef/#define/#endif
pattern).

Fixes: #391 #363
Signed-off-by: Brenden Blanco <[email protected]>
@goldshtn goldshtn mentioned this pull request Feb 17, 2016
4ast added a commit that referenced this pull request Feb 17, 2016
Fix breakage in open_perf_buffer
@4ast 4ast merged commit aaeea7b into master Feb 17, 2016
goldshtn added a commit to goldshtn/bcc that referenced this pull request Feb 17, 2016
@drzaeus77 drzaeus77 deleted the fix_perf_buffer branch February 18, 2016 03:40
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.

trace_perf_output.py raises NameError: global name 'multiprocessing' is not defined
2 participants