perf: Fix build breakage for architecutes without atomic64_t
[deliverable/linux.git] / include / linux / perf_event.h
index 2a0da021c23f5e2976a5b5327e3f5269cbd5bf16..1218d05728b9135c87a12370d2d5fa6f8326cc70 100644 (file)
@@ -462,6 +462,7 @@ enum perf_callchain_context {
 
 #ifdef CONFIG_PERF_EVENTS
 # include <asm/perf_event.h>
+# include <asm/local64.h>
 #endif
 
 struct perf_guest_info_callbacks {
@@ -536,10 +537,10 @@ struct hw_perf_event {
                struct arch_hw_breakpoint       info;
 #endif
        };
-       atomic64_t                      prev_count;
+       local64_t                       prev_count;
        u64                             sample_period;
        u64                             last_period;
-       atomic64_t                      period_left;
+       local64_t                       period_left;
        u64                             interrupts;
 
        u64                             freq_time_stamp;
@@ -602,6 +603,8 @@ enum perf_event_active_state {
 
 struct file;
 
+#define PERF_BUFFER_WRITABLE           0x01
+
 struct perf_buffer {
        atomic_t                        refcount;
        struct rcu_head                 rcu_head;
@@ -668,7 +671,8 @@ struct perf_event {
 
        enum perf_event_active_state    state;
        unsigned int                    attach_state;
-       atomic64_t                      count;
+       local64_t                       count;
+       atomic64_t                      child_count;
 
        /*
         * These are the total time in nanoseconds that the event
This page took 0.034932 seconds and 5 git commands to generate.