]> Git Repo - linux.git/commitdiff
perf tools: Add aux_watermark member of struct perf_event_attr
authorAdrian Hunter <[email protected]>
Thu, 9 Apr 2015 15:54:06 +0000 (18:54 +0300)
committerArnaldo Carvalho de Melo <[email protected]>
Wed, 29 Apr 2015 13:37:58 +0000 (10:37 -0300)
Add new AUX area member (aux_watermark) of struct perf_event_attr to
debug prints and byte swapping.

Signed-off-by: Adrian Hunter <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/util/evsel.c
tools/perf/util/session.c

index 33e3fd8c2e682d19c8c8dbda12b9815199ef47bf..c886b9f7a48d01b31c0eb541961faa4c02df3179 100644 (file)
@@ -1121,6 +1121,7 @@ int perf_event_attr__fprintf(FILE *fp, struct perf_event_attr *attr,
        PRINT_ATTRf(sample_stack_user, p_unsigned);
        PRINT_ATTRf(clockid, p_signed);
        PRINT_ATTRf(sample_regs_intr, p_hex);
+       PRINT_ATTRf(aux_watermark, p_unsigned);
 
        return ret;
 }
index 1db3ce118a5480725c23c9b115a90238c1b2c2c2..90fa5674ccb4edcb3ade581a2c4bf0c23079a9d7 100644 (file)
@@ -500,6 +500,7 @@ void perf_event__attr_swap(struct perf_event_attr *attr)
        attr->branch_sample_type = bswap_64(attr->branch_sample_type);
        attr->sample_regs_user   = bswap_64(attr->sample_regs_user);
        attr->sample_stack_user  = bswap_32(attr->sample_stack_user);
+       attr->aux_watermark      = bswap_32(attr->aux_watermark);
 
        swap_bitfield((u8 *) (&attr->read_format + 1), sizeof(u64));
 }
This page took 0.055406 seconds and 4 git commands to generate.