perf scripting python: Fix tuple_set_u64()
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 25 May 2021 09:51:03 +0000 (12:51 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 14:56:38 +0000 (16:56 +0200)
commita16eae11f004fa193865f2858514996069b3fca0
tree45128b3abc3ddd72d5af9feab9ed16556e8b0ad4
parent201b975c164398dfb0875e834529c303c95bc54e
perf scripting python: Fix tuple_set_u64()

[ Upstream commit d04c1ff0b3ddd5c0fbbe640996c8eaad279ed1c5 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/perf/util/scripting-engines/trace-event-python.c