Fix symbol resolution by name (SymbolCache.resolve_name)
authorSasha Goldshtein <goldshtn@gmail.com>
Thu, 9 Feb 2017 21:32:56 +0000 (16:32 -0500)
committerSasha Goldshtein <goldshtn@gmail.com>
Tue, 21 Feb 2017 09:30:43 +0000 (09:30 +0000)
commit03ab5e8fa0d772bfdca13b5fa05fbf7b80563a1e
tree8bee567b1e29435df552a1dd07af995b8e7af714
parent01553853352b5e86704c7fd37f2cfadbf3ef2d6d
Fix symbol resolution by name (SymbolCache.resolve_name)

The implementation of `ProcSyms::resolve_name` was only valid for
kernel symbols, when there is no module. When a module was provided,
it would segfault due to the module being null. Fixed by making
`bcc_symcache_resolve_name` take an additional module parameter,
which, for kernel symbols, is simply null (`None` from Python).
src/cc/bcc_syms.cc
src/cc/bcc_syms.h
src/python/bcc/__init__.py
src/python/bcc/libbcc.py