Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1373014 > unrolled thread
| Started by | Alexei Starovoitov <ast@fb.com> |
|---|---|
| First post | 2016-04-07 03:50 +0200 |
| Last post | 2016-04-07 23:00 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH v2 net-next 02/10] perf: remove unused __addr variable Alexei Starovoitov <ast@fb.com> - 2016-04-07 03:50 +0200
Re: [PATCH v2 net-next 02/10] perf: remove unused __addr variable Peter Zijlstra <peterz@infradead.org> - 2016-04-07 23:00 +0200
| From | Alexei Starovoitov <ast@fb.com> |
|---|---|
| Date | 2016-04-07 03:50 +0200 |
| Subject | [PATCH v2 net-next 02/10] perf: remove unused __addr variable |
| Message-ID | <rl7f5-4BO-29@gated-at.bofh.it> |
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>
---
include/trace/perf.h | 7 ++-----
include/trace/trace_events.h | 3 ---
2 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/include/trace/perf.h b/include/trace/perf.h
index 26486fcd74ce..6f7e37869065 100644
--- a/include/trace/perf.h
+++ b/include/trace/perf.h
@@ -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); \
}
diff --git a/include/trace/trace_events.h b/include/trace/trace_events.h
index 170c93bbdbb7..80679a9fae65 100644
--- a/include/trace/trace_events.h
+++ b/include/trace/trace_events.h
@@ -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)
--
2.8.0
[toc] | [next] | [standalone]
| From | Peter Zijlstra <peterz@infradead.org> |
|---|---|
| Date | 2016-04-07 23:00 +0200 |
| Message-ID | <rlpbX-16R-9@gated-at.bofh.it> |
| In reply to | #1373014 |
On Wed, Apr 06, 2016 at 06:43:23PM -0700, Alexei Starovoitov wrote: > 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> > --- > include/trace/perf.h | 7 ++----- > include/trace/trace_events.h | 3 --- > 2 files changed, 2 insertions(+), 8 deletions(-) > > diff --git a/include/trace/perf.h b/include/trace/perf.h > index 26486fcd74ce..6f7e37869065 100644 > --- a/include/trace/perf.h > +++ b/include/trace/perf.h > @@ -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)) > - Ah, we're not using that anylonger.. Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web