python: With DEBUG_BPF, print BPF error even if log_buf is not empty.
authorQuentin Monnet <quentin.monnet@6wind.com>
Thu, 9 Jun 2016 12:55:29 +0000 (14:55 +0200)
committerQuentin Monnet <quentin.monnet@6wind.com>
Mon, 13 Jun 2016 09:04:45 +0000 (11:04 +0200)
commit4ddedda584abcd3f9c1b8843f2e059014fd1d94f
tree8698d0203655b6bcb2dfbf82cd896d7f58fdc013
parentbb699887b84309ecce043d6cf41b55cfb55285d3
python: With DEBUG_BPF, print BPF error even if log_buf is not empty.

When BPF syscall fails and DEBUG_FLAG has been provided to a Python
caller script, the BPF error string would be printed only if log_buf had
not been filled by the kernel. This commit removes this requirement,
printing the error string even if log_buf is not empty.

Signed-off-by: Quentin Monnet <quentin.monnet@6wind.com>
src/python/bcc/__init__.py