Re: [RFC 1/3] Revert "tracepoint: Use __idx instead of idx in DO_TRACE macro to make it unique"

From: Steven Rostedt
Date: Fri Feb 07 2020 - 16:18:19 EST


[Top posting as I'm replying from an airport gate, from my phone ]

Although you have a cover letter explaining the revert, each patch must be standalone, otherwise looking at git history won't have any explanation for the revert.

-- Steve


On February 7, 2020 3:56:54 PM EST, "Joel Fernandes (Google)" <joel@xxxxxxxxxxxxxxxxx> wrote:
>This reverts commit 0c7a52e4d4b5c4d35b31f3c3ad32af814f1bf491.
>
>Signed-off-by: Joel Fernandes (Google) <joel@xxxxxxxxxxxxxxxxx>
>---
> include/linux/tracepoint.h | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
>diff --git a/include/linux/tracepoint.h b/include/linux/tracepoint.h
>index 1fb11daa5c533..59463c90fdc3d 100644
>--- a/include/linux/tracepoint.h
>+++ b/include/linux/tracepoint.h
>@@ -164,7 +164,7 @@ static inline struct tracepoint
>*tracepoint_ptr_deref(tracepoint_ptr_t *p)
> struct tracepoint_func *it_func_ptr; \
> void *it_func; \
> void *__data; \
>- int __maybe_unused __idx = 0; \
>+ int __maybe_unused idx = 0; \
> \
> if (!(cond)) \
> return; \
>@@ -180,7 +180,7 @@ static inline struct tracepoint
>*tracepoint_ptr_deref(tracepoint_ptr_t *p)
> * doesn't work from the idle path. \
> */ \
> if (rcuidle) { \
>- __idx = srcu_read_lock_notrace(&tracepoint_srcu);\
>+ idx = srcu_read_lock_notrace(&tracepoint_srcu); \
> rcu_irq_enter_irqson(); \
> } \
> \
>@@ -196,7 +196,7 @@ static inline struct tracepoint
>*tracepoint_ptr_deref(tracepoint_ptr_t *p)
> \
> if (rcuidle) { \
> rcu_irq_exit_irqson(); \
>- srcu_read_unlock_notrace(&tracepoint_srcu, __idx);\
>+ srcu_read_unlock_notrace(&tracepoint_srcu, idx);\
> } \
> \
> preempt_enable_notrace(); \

--
Sent from my Android device with K-9 Mail. Please excuse my brevity and top posting.