perf: remove unused __addr variable
authorAlexei Starovoitov <ast@fb.com>
Thu, 7 Apr 2016 01:43:23 +0000 (18:43 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Apr 2016 01:04:26 +0000 (21:04 -0400)
now all calls to perf_trace_buf_submit() pass 0 as 4th
argument which will be repurposed in the next patch which will
change the meaning of 1st arg of perf_tp_event() to event_type

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/trace/perf.h
include/trace/trace_events.h

index 26486fcd74ce4eb79039983c6a43572caa9f9f61..6f7e37869065631fae0a886dc6e052d6ec0a5189 100644 (file)
@@ -20,9 +20,6 @@
 #undef __get_bitmask
 #define __get_bitmask(field) (char *)__get_dynamic_array(field)
 
-#undef __perf_addr
-#define __perf_addr(a) (__addr = (a))
-
 #undef __perf_count
 #define __perf_count(c)        (__count = (c))
 
@@ -38,7 +35,7 @@ perf_trace_##call(void *__data, proto)                                        \
        struct trace_event_data_offsets_##call __maybe_unused __data_offsets;\
        struct trace_event_raw_##call *entry;                           \
        struct pt_regs *__regs;                                         \
-       u64 __addr = 0, __count = 1;                                    \
+       u64 __count = 1;                                                \
        struct task_struct *__task = NULL;                              \
        struct hlist_head *head;                                        \
        int __entry_size;                                               \
@@ -67,7 +64,7 @@ perf_trace_##call(void *__data, proto)                                        \
                                                                        \
        { assign; }                                                     \
                                                                        \
-       perf_trace_buf_submit(entry, __entry_size, rctx, __addr,        \
+       perf_trace_buf_submit(entry, __entry_size, rctx, 0,             \
                __count, __regs, head, __task);                         \
 }
 
index 170c93bbdbb75e1be7a4efb71c7873d6c84d9e35..80679a9fae65e3d5a00be4235d7153d7aad34177 100644 (file)
@@ -652,9 +652,6 @@ static inline notrace int trace_event_get_offsets_##call(           \
 #undef TP_fast_assign
 #define TP_fast_assign(args...) args
 
-#undef __perf_addr
-#define __perf_addr(a) (a)
-
 #undef __perf_count
 #define __perf_count(c)        (c)