perf scripting python: Fix tuple_set_u64()
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 25 May 2021 09:51:03 +0000 (12:51 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 25 May 2021 13:07:16 +0000 (10:07 -0300)
commitd04c1ff0b3ddd5c0fbbe640996c8eaad279ed1c5
treeb798e658d16d24c11075d4c7fc51300bd5dbe442
parent04612968783f6892c1eb710b444fc5bbe8f5c673
perf scripting python: Fix tuple_set_u64()

tuple_set_u64() produces a signed value instead of an unsigned value.
That works for database export but not other cases. Rename to
tuple_set_d64() for database export and fix tuple_set_u64().

Fixes: df919b400ad3f ("perf scripting python: Extend interface to export data in a database-friendly way")
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Link: https://lore.kernel.org/r/20210525095112.1399-2-adrian.hunter@intel.com
tools/perf/util/scripting-engines/trace-event-python.c