Skip to content

Commit

Permalink
Omit include of ptrace.h for empty usdt contexts
Browse files Browse the repository at this point in the history
Fixes: iovisor#1280
Signed-off-by: Brenden Blanco <[email protected]>
  • Loading branch information
drzaeus77 committed Aug 16, 2017
1 parent a2afe8d commit 4cb1edb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cc/usdt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
//
Expand Down

0 comments on commit 4cb1edb

Please sign in to comment.