summaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorJohn Keeping <john@metanate.com>2019-08-15 13:01:44 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-08-16 18:25:23 +0300
commitab6cd0e5276e24403751e0b3b8ed807738a8571f (patch)
treea34bf3a7e310608cd591db5dc6a1af785b08c1bc /tools/perf/util/scripting-engines/trace-event-python.c
parentef4b1a539f4b8776701752c5a09ee741a4232ae6 (diff)
downloadlinux-ab6cd0e5276e24403751e0b3b8ed807738a8571f.tar.xz
perf map: Use zalloc for map_groups
In the next commit we will add new fields to map_groups and we need these to be null if no value is assigned. The simplest way to achieve this is to request zeroed memory from the allocator. Signed-off-by: John Keeping <john@metanate.com> Reviewed-by: Jiri Olsa <jolsa@kernel.org> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Konstantin Khlebnikov <khlebnikov@yandex-team.ru> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: john keeping <john@metanate.com> Link: http://lkml.kernel.org/r/20190815100146.28842-1-john@metanate.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions