projects
/
platform
/
upstream
/
bcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e12f55a
)
Fix uninitialized ProcMountNS in USDT Context
author
Teng Qin
<qinteng@fb.com>
Fri, 25 Aug 2017 23:29:16 +0000
(16:29 -0700)
committer
Brenden Blanco
<bblanco@gmail.com>
Sat, 26 Aug 2017 00:14:44 +0000
(17:14 -0700)
src/cc/usdt/usdt.cc
patch
|
blob
|
history
diff --git
a/src/cc/usdt/usdt.cc
b/src/cc/usdt/usdt.cc
index
ccb7caa
..
ce92acc
100644
(file)
--- a/
src/cc/usdt/usdt.cc
+++ b/
src/cc/usdt/usdt.cc
@@
-285,7
+285,8
@@
void Context::each_uprobe(each_uprobe_cb callback) {
}
}
-Context::Context(const std::string &bin_path) : loaded_(false) {
+Context::Context(const std::string &bin_path)
+ : mount_ns_instance_(new ProcMountNS(-1)), loaded_(false) {
std::string full_path = resolve_bin_path(bin_path);
if (!full_path.empty()) {
if (bcc_elf_foreach_usdt(full_path.c_str(), _each_probe, this) == 0) {