perf script: Support data page size
Display the data page size if it is available and asked by the user:
Can be configured by the user, for example:
perf script --fields comm,event,phys_addr,data_page_size
dtlb mem-loads:uP:
3fec82ea8 4K
dtlb mem-loads:uP:
3fec82e90 4K
dtlb mem-loads:uP:
3e23700a4 4K
dtlb mem-loads:uP:
3fec82f20 4K
dtlb mem-loads:uP:
3e23700a4 4K
dtlb mem-loads:uP:
3b4211bec 4K
dtlb mem-loads:uP:
382205dc0 2M
dtlb mem-loads:uP:
36fa082c0 2M
dtlb mem-loads:uP:
377607340 2M
dtlb mem-loads:uP:
330010180 2M
dtlb mem-loads:uP:
33200fd80 2M
dtlb mem-loads:uP:
31b012b80 2M
Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Stephane Eranian <eranian@google.com>
Cc: Will Deacon <will@kernel.org>
Link: http://lore.kernel.org/lkml/20201216185805.9981-2-kan.liang@linux.intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>