Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf tools: Add aux_watermark member of struct perf_event_attr

Add new AUX area member (aux_watermark) of struct perf_event_attr to
debug prints and byte swapping.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1428594864-29309-27-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Adrian Hunter and committed by
Arnaldo Carvalho de Melo
70d73de4 400ea6d3

+2
+1
tools/perf/util/evsel.c
··· 1121 1121 PRINT_ATTRf(sample_stack_user, p_unsigned); 1122 1122 PRINT_ATTRf(clockid, p_signed); 1123 1123 PRINT_ATTRf(sample_regs_intr, p_hex); 1124 + PRINT_ATTRf(aux_watermark, p_unsigned); 1124 1125 1125 1126 return ret; 1126 1127 }
+1
tools/perf/util/session.c
··· 500 500 attr->branch_sample_type = bswap_64(attr->branch_sample_type); 501 501 attr->sample_regs_user = bswap_64(attr->sample_regs_user); 502 502 attr->sample_stack_user = bswap_32(attr->sample_stack_user); 503 + attr->aux_watermark = bswap_32(attr->aux_watermark); 503 504 504 505 swap_bitfield((u8 *) (&attr->read_format + 1), sizeof(u64)); 505 506 }