Commit 4e04c945 authored by yonghong-song's avatar yonghong-song Committed by GitHub

Merge pull request #1489 from r4f4/fix-ucalls-py3

ucalls: convert bytes to str
parents 1eee853c 99d14683
...@@ -255,11 +255,13 @@ if args.syscalls: ...@@ -255,11 +255,13 @@ if args.syscalls:
def get_data(): def get_data():
# Will be empty when no language was specified for tracing # Will be empty when no language was specified for tracing
if args.latency: if args.latency:
data = list(map(lambda kv: (kv[0].clazz + "." + kv[0].method, data = list(map(lambda kv: (kv[0].clazz.decode() + "." + \
kv[0].method.decode(),
(kv[1].num_calls, kv[1].total_ns)), (kv[1].num_calls, kv[1].total_ns)),
bpf["times"].items())) bpf["times"].items()))
else: else:
data = list(map(lambda kv: (kv[0].clazz + "." + kv[0].method, data = list(map(lambda kv: (kv[0].clazz.decode() + "." + \
kv[0].method.decode(),
(kv[1].value, 0)), (kv[1].value, 0)),
bpf["counts"].items())) bpf["counts"].items()))
......
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