kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* question about macro __DO_TRACE
@ 2011-02-26  2:40 zhao bao
  2011-02-26  4:37 ` Frederic Weisbecker
  0 siblings, 1 reply; 3+ messages in thread
From: zhao bao @ 2011-02-26  2:40 UTC (permalink / raw)
  To: kernelnewbies

 Hello,everybody. When I read tracepoint code, I find variable __data
never used. Am I missing something?

#define __DO_TRACE(tp, proto, args, cond)                               \
        do {                                                            \
                struct tracepoint_func *it_func_ptr;                    \
                void *it_func;                                          \
                void *__data;                                           \
                                                                        \
                if (!(cond))                                            \
                        return;                                         \
                rcu_read_lock_sched_notrace();                          \
                it_func_ptr = rcu_dereference_sched((tp)->funcs);       \
                if (it_func_ptr) {                                      \
                        do {                                            \
                                it_func = (it_func_ptr)->func;          \
                                __data = (it_func_ptr)->data;           \
                                ((void(*)(proto))(it_func))(args);      \
                        } while ((++it_func_ptr)->func);                \
                }                                                       \
                rcu_read_unlock_sched_notrace();                        \
        } while (0)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-02-26  4:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-26  2:40 question about macro __DO_TRACE zhao bao
2011-02-26  4:37 ` Frederic Weisbecker
2011-02-26  4:54   ` Mulyadi Santosa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).