ucalls: fix map behaviour on python3
authorRafael Fonseca <rdossant@redhat.com>
Mon, 13 Feb 2017 14:46:54 +0000 (15:46 +0100)
committerRafael Fonseca <rdossant@redhat.com>
Mon, 13 Feb 2017 14:49:13 +0000 (15:49 +0100)
commit42900aee510c3bd5b15aec3863ac2c9dbdda3565
tree586d30912dd02ee496468e4345ef702bbd2f6d0d
parent5467ccf46ff19d2b919deb3a1db935066ebb8308
ucalls: fix map behaviour on python3

On python3 map returns a generator instead of a list. This fixes the
following error:

Traceback (most recent call last):
  File "./ucalls", line 280, in <module>
    data = get_data()   # [(function, (num calls, latency in ns))]
  File "./ucalls", line 255, in get_data
    data.extend(syscalls)
AttributeError: 'map' object has no attribute 'extend'
tools/ucalls.py