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:
a2afe8d
)
Omit include of ptrace.h for empty usdt contexts
author
Brenden Blanco
<bblanco@gmail.com>
Wed, 16 Aug 2017 18:26:14 +0000
(11:26 -0700)
committer
Brenden Blanco
<bblanco@gmail.com>
Wed, 16 Aug 2017 18:26:14 +0000
(11:26 -0700)
Fixes: #1280
Signed-off-by: Brenden Blanco <bblanco@gmail.com>
src/cc/usdt.cc
patch
|
blob
|
history
diff --git
a/src/cc/usdt.cc
b/src/cc/usdt.cc
index
c3ef95a
..
ccb7caa
100644
(file)
--- a/
src/cc/usdt.cc
+++ b/
src/cc/usdt.cc
@@
-356,6
+356,9
@@
const char *bcc_usdt_genargs(void **usdt_array, int len) {
static std::string storage_;
std::ostringstream stream;
+ if (!len)
+ return "";
+
stream << USDT::USDT_PROGRAM_HEADER;
// Generate genargs codes for an array of USDT Contexts.
//