login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
March
»
24
Re: [PATCH 3/3] tracing: Update comments
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Steven Rostedt
Subject:
Re: [PATCH 3/3] tracing: Update comments
Date: Tuesday, March 23, 2010 - 8:07 pm
On Wed, 2010-03-24 at 10:58 +0800, Li Zefan wrote:
quoted text
> Make some comments consistent with the code. >
Thanks, I'll queue this for 35. -- Steve
quoted text
> Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> > --- > include/trace/ftrace.h | 33 +++++++++++++++++++-------------- > 1 files changed, 19 insertions(+), 14 deletions(-) > > diff --git a/include/trace/ftrace.h b/include/trace/ftrace.h > index ea6f9d4..75dd778 100644 > --- a/include/trace/ftrace.h > +++ b/include/trace/ftrace.h > @@ -154,9 +154,11 @@ > * > * field = (typeof(field))entry; > * > - * p = get_cpu_var(ftrace_event_seq); > + * p = &get_cpu_var(ftrace_event_seq); > * trace_seq_init(p); > - * ret = trace_seq_printf(s, <TP_printk> "\n"); > + * ret = trace_seq_printf(s, "%s: ", <call>); > + * if (ret) > + * ret = trace_seq_printf(s, <TP_printk> "\n"); > * put_cpu(); > * if (!ret) > * return TRACE_TYPE_PARTIAL_LINE; > @@ -450,38 +452,38 @@ perf_trace_disable_##name(struct ftrace_event_call *unused) \ > * > * static void ftrace_raw_event_<call>(proto) > * { > + * struct ftrace_data_offsets_<call> __maybe_unused __data_offsets; > * struct ring_buffer_event *event; > * struct ftrace_raw_<call> *entry; <-- defined in stage 1 > * struct ring_buffer *buffer; > * unsigned long irq_flags; > + * int __data_size; > * int pc; > * > * local_save_flags(irq_flags); > * pc = preempt_count(); > * > + * __data_size = ftrace_get_offsets_<call>(&__data_offsets, args); > + * > * event = trace_current_buffer_lock_reserve(&buffer, > * event_<call>.id, > - * sizeof(struct ftrace_raw_<call>), > + * sizeof(*entry) + __data_size, > * irq_flags, pc); > * if (!event) > * return; > * entry = ring_buffer_event_data(event); > * > - * <assign>; <-- Here we assign the entries by the __field and > - * __array macros. > + * { <assign>; } <-- Here we assign the entries by the __field and > + * __array macros. > * > - * trace_current_buffer_unlock_commit(buffer, event, irq_flags, pc); > + * if (!filter_current_check_discard(buffer, event_call, entry, event)) > + * trace_current_buffer_unlock_commit(buffer, > + * event, irq_flags, pc); > * } > * > * static int ftrace_raw_reg_event_<call>(struct ftrace_event_call *unused) > * { > - * int ret; > - * > - * ret = register_trace_<call>(ftrace_raw_event_<call>); > - * if (!ret) > - * pr_info("event trace: Could not activate trace point " > - * "probe to <call>"); > - * return ret; > + * return register_trace_<call>(ftrace_raw_event_<call>); > * } > * > * static void ftrace_unreg_event_<call>(struct ftrace_event_call *unused) > @@ -493,6 +495,8 @@ perf_trace_disable_##name(struct ftrace_event_call *unused) \ > * .trace = ftrace_raw_output_<call>, <-- stage 2 > * }; > * > + * static const char print_fmt_<call>[] = <TP_printk>; > + * > * static struct ftrace_event_call __used > * __attribute__((__aligned__(4))) > * __attribute__((section("_ftrace_events"))) event_<call> = { > @@ -501,6 +505,8 @@ perf_trace_disable_##name(struct ftrace_event_call *unused) \ > * .raw_init = trace_event_raw_init, > * .regfunc = ftrace_reg_event_<call>, > * .unregfunc = ftrace_unreg_event_<call>, > + * .print_fmt = print_fmt_<call>, > + * .define_fields = ftrace_define_fields_<call>, > * } > * > */ > @@ -569,7 +575,6 @@ ftrace_raw_event_id_##call(struct ftrace_event_call *event_call, \ > return; \ > entry = ring_buffer_event_data(event); \ > \ > - \ > tstruct \ > \ > { assign; } \
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 1/3] tracing: Reduce overhead of module tracepoints
, Li Zefan
, (Tue Mar 23, 7:57 pm)
[PATCH 2/3] tracing: Convert some signal events to DEFINE_ ...
, Li Zefan
, (Tue Mar 23, 7:58 pm)
[PATCH 3/3] tracing: Update comments
, Li Zefan
, (Tue Mar 23, 7:58 pm)
Re: [PATCH 1/3] tracing: Reduce overhead of module tracepoints
, Steven Rostedt
, (Tue Mar 23, 8:05 pm)
Re: [PATCH 3/3] tracing: Update comments
, Steven Rostedt
, (Tue Mar 23, 8:07 pm)
Re: [PATCH 2/3] tracing: Convert some signal events to DEF ...
, Steven Rostedt
, (Tue Mar 23, 8:07 pm)
Re: [PATCH 2/3] tracing: Convert some signal events to DEF ...
, Masami Hiramatsu
, (Tue Mar 23, 8:17 pm)
Re: [PATCH 1/3] tracing: Reduce overhead of module tracepoints
, Mathieu Desnoyers
, (Wed Mar 24, 3:24 am)
Re: [PATCH 1/3] tracing: Reduce overhead of module tracepoints
, Randy Dunlap
, (Wed Mar 24, 4:41 pm)
[tip:tracing/urgent] tracing: Remove side effect from modu ...
, tip-bot for Li Zefan
, (Fri Mar 26, 7:03 pm)
Re: [tip:tracing/urgent] tracing: Remove side effect from ...
, Mathieu Desnoyers
, (Fri Mar 26, 9:10 pm)
Re: [tip:tracing/urgent] tracing: Remove side effect from ...
, Steven Rostedt
, (Fri Mar 26, 9:23 pm)
[tip:tracing/core] tracing: Convert some signal events to ...
, tip-bot for Li Zefan
, (Fri Apr 2, 12:03 pm)
[tip:tracing/core] tracing: Update comments
, tip-bot for Li Zefan
, (Fri Apr 2, 12:04 pm)
[tip:tracing/core] tracing: Remove side effect from module ...
, tip-bot for Li Zefan
, (Fri Apr 2, 12:04 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Michael Trimarchi
Re: [PATCH] VFS: make file->f_pos access atomic on 32bit arch
Miklos Szeredi
[patch 14/15] vfs: more path_permission() conversions
Serge E. Hallyn
Re: [RFC v5][PATCH 7/8] Infrastructure for shared objects
Bernd Schmidt
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Takashi Iwai
[PATCH 2/2] input: Add LED support to Synaptics device
git
:
Junio C Hamano
Re: mingw, windows, crlf/lf, and git
Eyvind Bernhardsen
Re: Where has "git ls-remote" reference pattern matching gone?
Shawn O. Pearce
Re: Switching from CVS to GIT
Todd Zullinger
Re: [PATCH 2/2] send-email: rfc2047-quote subject lines with non-ascii characters
Santi Béjar
Re: How to use git-fmt-merge-msg?
linux-netdev
:
Ramkrishna Vepa
[net-2.6 PATCH 1/10] Neterion: New driver: Driver help file
Mark Anthony
invitation / inquiry
Ingo Molnar
Re: [PATCH 08/16] dma-debug: add core checking functions
David Miller
Re: [PATCH 1/3] f_phonet: dev_kfree_skb instead of dev_kfree_skb_any in TX callback
Sascha Hauer
[PATCH 03/12] fec: do not typedef struct types
git-commits-head
:
Linux Kernel Mailing List
amba: struct device - replace bus_id with dev_name(), dev_set_name()
Linux Kernel Mailing List
MIPS: Yosemite: Convert SMP startup lock to arch spinlock.
Linux Kernel Mailing List
ARM: S5PC100: IRQ and timer
Linux Kernel Mailing List
davinci: edma: clear interrupt status for interrupt enabled channels only
Linux Kernel Mailing List
x86, mm, kprobes: fault.c, simplify notify_page_fault()
openbsd-misc
:
Daniel A. Ramaley
Re: [semi-OT] Can anyone recommend an OpenBSD-compatible colour laser printer?
Matthias Kilian
Re: can't get vesa @ 1280x800 or nv
Tobias Ulmer
Re: Problem after upgrade 4.5 to 4.6: ERR M
Philip Guenther
Re: SIGCHLD and libpthread.so
J.C. Roberts
Re: [semi-OT] Can anyone recommend an OpenBSD-compatible colour laser printer?
Colocation donated by:
Syndicate