aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/perf_event.h
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2010-05-18 05:12:48 -0400
committerIngo Molnar <mingo@elte.hu>2010-05-18 12:35:49 -0400
commit6d1acfd5c6bfd5231c13a8f2858d7f2afbaa1b62 (patch)
treeabcfa95947cafc94c978a255b814472fe67cad22 /include/linux/perf_event.h
parentfa5881514ef9c9bcb29319aad85cf2d8889d91f1 (diff)
perf: Optimize perf_output_*() by avoiding local_xchg()
Since the x86 XCHG ins implies LOCK, avoid the use by using a sequence count instead. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/perf_event.h')
-rw-r--r--include/linux/perf_event.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h
index ce7667616fcb..fe50347dc645 100644
--- a/include/linux/perf_event.h
+++ b/include/linux/perf_event.h
@@ -804,6 +804,7 @@ struct perf_output_handle {
804 struct perf_mmap_data *data; 804 struct perf_mmap_data *data;
805 unsigned long head; 805 unsigned long head;
806 unsigned long offset; 806 unsigned long offset;
807 unsigned long wakeup;
807 int nmi; 808 int nmi;
808 int sample; 809 int sample;
809}; 810};