Commit 4cb1edb6 authored by Brenden Blanco's avatar Brenden Blanco

Omit include of ptrace.h for empty usdt contexts

Fixes: #1280
Signed-off-by: default avatarBrenden Blanco <bblanco@gmail.com>
parent a2afe8d3
...@@ -356,6 +356,9 @@ const char *bcc_usdt_genargs(void **usdt_array, int len) { ...@@ -356,6 +356,9 @@ const char *bcc_usdt_genargs(void **usdt_array, int len) {
static std::string storage_; static std::string storage_;
std::ostringstream stream; std::ostringstream stream;
if (!len)
return "";
stream << USDT::USDT_PROGRAM_HEADER; stream << USDT::USDT_PROGRAM_HEADER;
// Generate genargs codes for an array of USDT Contexts. // Generate genargs codes for an array of USDT Contexts.
// //
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment