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 issue #1744. #1746

Merged
merged 1 commit into from
May 10, 2018
Merged

Fix issue #1744. #1746

merged 1 commit into from
May 10, 2018

Conversation

lumru
Copy link
Contributor

@lumru lumru commented May 9, 2018

- Fix a crash in the python binding when trying to open a perf buffer
    in python < 3.6
- See iovisor#1744
@yonghong-song
Copy link
Collaborator

[buildbot, ok to test]

@@ -445,12 +445,12 @@ def get_table(self, name, keytype=None, leaftype=None, reducer=None):
if map_fd < 0:
raise KeyError
if not keytype:
key_desc = lib.bpf_table_key_desc(self.module, name)
key_desc = lib.bpf_table_key_desc(self.module, name).decode("utf-8")
Copy link
Member

Choose a reason for hiding this comment

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

Does the JSON library always return UTF-8 or it depends on the system's encoding?

@lumru
Copy link
Contributor Author

lumru commented May 9, 2018

@palmtenor: The data is not coming from the json library: Its coming from libbcc and going to the json library.

@yonghong-song
Copy link
Collaborator

LGTM. Thanks!

@yonghong-song yonghong-song merged commit 0a43633 into iovisor:master May 10, 2018
banh-gao pushed a commit to banh-gao/bcc that referenced this pull request Jun 21, 2018
- Fix a crash in the python binding when trying to open a perf buffer
    in python < 3.6
- See iovisor#1744
CrackerCat pushed a commit to CrackerCat/bcc that referenced this pull request Jul 31, 2024
- Fix a crash in the python binding when trying to open a perf buffer
    in python < 3.6
- See iovisor#1744
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