summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorLeo Yan <leo.yan@linaro.org>2020-11-06 17:48:46 +0800
committerArnaldo Carvalho de Melo <acme@redhat.com>2020-11-11 10:29:12 -0300
commiteaf6aaeec5fa301c0eb8ae92962909b15d075e5f (patch)
tree7eaf70180284fc30b5b72ec594722c51c6face8c /tools/perf/scripts/python/export-to-postgresql.py
parentf9f16dfbe76e63ba9aec68055c08242b09be297e (diff)
downloadlinux-eaf6aaeec5fa301c0eb8ae92962909b15d075e5f.tar.gz
linux-eaf6aaeec5fa301c0eb8ae92962909b15d075e5f.zip
perf mem: Introduce weak function perf_mem_events__ptr()
Different architectures might use different event or different event parameters for memory profiling, this patch introduces a weak perf_mem_events__ptr() function which allows to return back a architecture specific memory event. Since the variable 'perf_mem_events' can be only accessed by the perf_mem_events__ptr() function, mark the variable as 'static', this allows the architectures to define its own memory event array. Signed-off-by: Leo Yan <leo.yan@linaro.org> Acked-by: Jiri Olsa <jolsa@redhat.com> Link: https://lore.kernel.org/r/20201106094853.21082-3-leo.yan@linaro.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions