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

python: Allow module=None when resolving kernel symbols #1055

Merged
merged 1 commit into from
Mar 21, 2017

Conversation

goldshtn
Copy link
Collaborator

An earlier commit 7b35436 introduced an encode call designed to
support Python 3.x when passing the module name to bcc_symcache_resolve_name.
This breaks current code because the module may be None when
resolving kernel symbols, e.g. using the BPF.ksymname API.

This commit fixes the regression and introduces a test for ksym
and ksymname that would have caught it in the first place.

Resolves #1054.

An earlier commit 7b35436 introduced an encode call designed to
support Python 3.x when passing the module name to `bcc_symcache_resolve_name`.
This breaks current code because the module may be None when
resolving kernel symbols, e.g. using the `BPF.ksymname` API.

This commit fixes the regression and introduces a test for `ksym`
and `ksymname` that would have caught it in the first place.

Resolves iovisor#1054.
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.

ksymname doesn't work
2 participants