summaryrefslogtreecommitdiff
path: root/tools/perf/util/perf_event_attr_fprintf.c
diff options
context:
space:
mode:
authorKan Liang <kan.liang@linux.intel.com>2020-11-30 09:27:53 -0800
committerArnaldo Carvalho de Melo <acme@redhat.com>2020-12-17 14:36:16 -0300
commit542b88fd12769bf5be307b11ca0f94a6140bba82 (patch)
tree66e5ae3a916d186f909f3f7f39ddd53bb961f0ce /tools/perf/util/perf_event_attr_fprintf.c
parent47d982202f8cfaac6f208c9109fa15cb6a0181f7 (diff)
perf record: Support new sample type for data page size
Support new sample type PERF_SAMPLE_DATA_PAGE_SIZE for page size. Add new option --data-page-size to record sample data page size. Signed-off-by: Kan Liang <kan.liang@linux.intel.com> Acked-by: Namhyung Kim <namhyung@kernel.org> Cc: Andi Kleen <ak@linux.intel.com> Cc: Jiri Olsa <jolsa@redhat.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/20201130172803.2676-3-kan.liang@linux.intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/perf_event_attr_fprintf.c')
-rw-r--r--tools/perf/util/perf_event_attr_fprintf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/perf_event_attr_fprintf.c b/tools/perf/util/perf_event_attr_fprintf.c
index e67a227c0ce7..fb0bb6684438 100644
--- a/tools/perf/util/perf_event_attr_fprintf.c
+++ b/tools/perf/util/perf_event_attr_fprintf.c
@@ -35,7 +35,7 @@ static void __p_sample_type(char *buf, size_t size, u64 value)
bit_name(BRANCH_STACK), bit_name(REGS_USER), bit_name(STACK_USER),
bit_name(IDENTIFIER), bit_name(REGS_INTR), bit_name(DATA_SRC),
bit_name(WEIGHT), bit_name(PHYS_ADDR), bit_name(AUX),
- bit_name(CGROUP),
+ bit_name(CGROUP), bit_name(DATA_PAGE_SIZE),
{ .name = NULL, }
};
#undef bit_name