Suppress None return when trace_pipe drops lines
authorBrenden Blanco <bblanco@plumgrid.com>
Tue, 8 Sep 2015 05:52:23 +0000 (22:52 -0700)
committerBrenden Blanco <bblanco@plumgrid.com>
Tue, 8 Sep 2015 05:54:46 +0000 (22:54 -0700)
commit2a01f7c9af72dc59758606bbfcd788b7c9619c3a
treefcfdb7f750a81a27229b464e66d24305661cd791
parent79553c20056cb769949868ed44933b3533c6adae
Suppress None return when trace_pipe drops lines

* When a "CPU: X Lost N events" line came on the trace_pipe,
  trace_fields would return None and cause exceptions in callers that do
  (a, b, ...) = b.trace_fields() type of calls. Instead, keep reading
  from trace_pipe when such messages come.

Fixes: #187
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
src/python/bcc/__init__.py