[PATCH v2 -tip 3/4] tracing: make a snapshot feature available from userspace

2012-10-16 Thread Hiraku Toyooka
ile provides a mean to pre-allocate (or free) the max_tr buffer. # echo 1 > snapshot_allocate [...] # echo 1 > snapshot Signed-off-by: Hiraku Toyooka Cc: Steven Rostedt Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Jiri Olsa Cc: Li Zefan Cc: linux-kernel@vger.k

[PATCH v2 -tip 1/4] tracing: change tracer's integer flags to bool

2012-10-16 Thread Hiraku Toyooka
print_max and use_max_tr in struct tracer are "int" variables and used like flags. This is wasteful, so change the type to "bool". Signed-off-by: Hiraku Toyooka Cc: Steven Rostedt Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: linux-kernel@vger.kernel.org ---

[PATCH v2 -tip 0/4] tracing: make a snapshot feature available from userspace

2012-10-16 Thread Hiraku Toyooka
Hi, Steven, Thank you for your review. I changed the function name "resize_buffer_even" to "resize_buffer_duplicate_size". (v1: https://lkml.org/lkml/2012/10/2/67) --- Hiraku Toyooka (4): tracing: add description of snapshot to Documentation/trace/ftrace.txt

Re: [PATCH -tip 2/4] tracing: add a resize function for making one buffer equivalent to the other buffer

2012-10-16 Thread Hiraku Toyooka
h, but I just hate the name "resize_buffer_even". > What about "resize_buffer_duplicate_size"? > O.K. I'll send modified version of this patch later. Regards, Hiraku Toyooka -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of

Re: [PATCH -tip 2/4] tracing: add a resize function for making one buffer equivalent to the other buffer

2012-10-16 Thread Hiraku Toyooka
resize_buffer_even. What about resize_buffer_duplicate_size? O.K. I'll send modified version of this patch later. Regards, Hiraku Toyooka -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http

[PATCH v2 -tip 0/4] tracing: make a snapshot feature available from userspace

2012-10-16 Thread Hiraku Toyooka
Hi, Steven, Thank you for your review. I changed the function name resize_buffer_even to resize_buffer_duplicate_size. (v1: https://lkml.org/lkml/2012/10/2/67) --- Hiraku Toyooka (4): tracing: add description of snapshot to Documentation/trace/ftrace.txt tracing: make a snapshot

[PATCH v2 -tip 1/4] tracing: change tracer's integer flags to bool

2012-10-16 Thread Hiraku Toyooka
print_max and use_max_tr in struct tracer are int variables and used like flags. This is wasteful, so change the type to bool. Signed-off-by: Hiraku Toyooka hiraku.toyooka...@hitachi.com Cc: Steven Rostedt rost...@goodmis.org Cc: Frederic Weisbecker fweis...@gmail.com Cc: Ingo Molnar mi

[PATCH v2 -tip 3/4] tracing: make a snapshot feature available from userspace

2012-10-16 Thread Hiraku Toyooka
to pre-allocate (or free) the max_tr buffer. # echo 1 snapshot_allocate [...] # echo 1 snapshot Signed-off-by: Hiraku Toyooka hiraku.toyooka...@hitachi.com Cc: Steven Rostedt rost...@goodmis.org Cc: Frederic Weisbecker fweis...@gmail.com Cc: Ingo Molnar mi...@redhat.com Cc: Jiri Olsa jo

[PATCH v2 -tip 4/4] tracing: add description of snapshot to Documentation/trace/ftrace.txt

2012-10-16 Thread Hiraku Toyooka
This patch adds snapshot description in ftrace documentation. This description includes what the snapshot is and how to use it. Signed-off-by: Hiraku Toyooka hiraku.toyooka...@hitachi.com Cc: Steven Rostedt rost...@goodmis.org Cc: Frederic Weisbecker fweis...@gmail.com Cc: Ingo Molnar mi

[PATCH v2 -tip 2/4] tracing: add a resize function for making one buffer equivalent to the other buffer

2012-10-16 Thread Hiraku Toyooka
-by: Hiraku Toyooka hiraku.toyooka...@hitachi.com Cc: Steven Rostedt rost...@goodmis.org Cc: Frederic Weisbecker fweis...@gmail.com Cc: Ingo Molnar mi...@redhat.com Cc: linux-kernel@vger.kernel.org --- kernel/trace/trace.c | 58 +++--- 1 files changed, 31

[PATCH -tip 1/4] tracing: change tracer's integer flags to bool

2012-10-02 Thread Hiraku Toyooka
print_max and use_max_tr in struct tracer are "int" variables and used like flags. This is wasteful, so change the type to "bool". Signed-off-by: Hiraku Toyooka Cc: Steven Rostedt Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: linux-kernel@vger.kernel.org ---

[PATCH -tip 4/4] tracing: add description of snapshot to Documentation/trace/ftrace.txt

2012-10-02 Thread Hiraku Toyooka
This patch adds snapshot description in ftrace documentation. This description includes what the snapshot is and how to use it. Signed-off-by: Hiraku Toyooka Cc: Steven Rostedt Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Rob Landley Cc: linux-...@vger.kernel.org Cc: linux-kernel

[PATCH -tip 3/4] tracing: make a snapshot feature available from userspace

2012-10-02 Thread Hiraku Toyooka
ile provides a mean to pre-allocate (or free) the max_tr buffer. # echo 1 > snapshot_allocate [...] # echo 1 > snapshot Signed-off-by: Hiraku Toyooka Cc: Steven Rostedt Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Jiri Olsa Cc: Li Zefan Cc: linux-kernel@vger.k

[PATCH -tip 2/4] tracing: add a resize function for making one buffer equivalent to the other buffer

2012-10-02 Thread Hiraku Toyooka
to the global_trace's size) __tracing_resize_ring_buffer() can be used for (1), and had implemented (2) inside it for resetting the global_trace to the original size. (2) was also implemented in other place. So this patch assembles them in a new function - resize_buffer_even(). Signed-off-by: Hiraku

[PATCH -tip 0/4] tracing: make a snapshot feature available from userspace

2012-10-02 Thread Hiraku Toyooka
=R ==> next_comm=snapshot-test-2 next_pid=2243 next_prio=120 snapshot-test-2-2229 [002] d... 2440.707438: sched_switch: prev_comm=snapshot-test-2 prev_pid=2229 prev_prio=120 prev_state=S ==> next_comm=swapper/2 next_pid=0 next_prio=120 [...] --- Hiraku Toyooka (4): tracing: ad

[PATCH -tip 0/4] tracing: make a snapshot feature available from userspace

2012-10-02 Thread Hiraku Toyooka
: sched_switch: prev_comm=snapshot-test-2 prev_pid=2229 prev_prio=120 prev_state=S == next_comm=swapper/2 next_pid=0 next_prio=120 [...] --- Hiraku Toyooka (4): tracing: add description of snapshot to Documentation/trace/ftrace.txt tracing: make a snapshot feature available from

[PATCH -tip 2/4] tracing: add a resize function for making one buffer equivalent to the other buffer

2012-10-02 Thread Hiraku Toyooka
to the global_trace's size) __tracing_resize_ring_buffer() can be used for (1), and had implemented (2) inside it for resetting the global_trace to the original size. (2) was also implemented in other place. So this patch assembles them in a new function - resize_buffer_even(). Signed-off-by: Hiraku

[PATCH -tip 3/4] tracing: make a snapshot feature available from userspace

2012-10-02 Thread Hiraku Toyooka
to pre-allocate (or free) the max_tr buffer. # echo 1 snapshot_allocate [...] # echo 1 snapshot Signed-off-by: Hiraku Toyooka hiraku.toyooka...@hitachi.com Cc: Steven Rostedt rost...@goodmis.org Cc: Frederic Weisbecker fweis...@gmail.com Cc: Ingo Molnar mi...@redhat.com Cc: Jiri Olsa jo

[PATCH -tip 4/4] tracing: add description of snapshot to Documentation/trace/ftrace.txt

2012-10-02 Thread Hiraku Toyooka
This patch adds snapshot description in ftrace documentation. This description includes what the snapshot is and how to use it. Signed-off-by: Hiraku Toyooka hiraku.toyooka...@hitachi.com Cc: Steven Rostedt rost...@goodmis.org Cc: Frederic Weisbecker fweis...@gmail.com Cc: Ingo Molnar mi

[PATCH -tip 1/4] tracing: change tracer's integer flags to bool

2012-10-02 Thread Hiraku Toyooka
print_max and use_max_tr in struct tracer are int variables and used like flags. This is wasteful, so change the type to bool. Signed-off-by: Hiraku Toyooka hiraku.toyooka...@hitachi.com Cc: Steven Rostedt rost...@goodmis.org Cc: Frederic Weisbecker fweis...@gmail.com Cc: Ingo Molnar mi

Re: [RFC PATCH -tip ] tracing: make a snapshot feature available from userspace.

2012-07-19 Thread Hiraku Toyooka
.use_max_tr = 1, + .always_use_max_tr = 1, Remove all these. Have the 'allocated_snapshot' get set when the tracer is added, not here. OK, I'll remove them. But on the whole, I like the idea of a snapshot (and this has actually been on my todo list for some time,

Re: [RFC PATCH -tip ] tracing: make a snapshot feature available from userspace.

2012-07-19 Thread Hiraku Toyooka
. But on the whole, I like the idea of a snapshot (and this has actually been on my todo list for some time, thanks for doing it for me ;-) Thank you for your review! Best regards, Hiraku Toyooka -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message

Re: [RFC PATCH -tip ] tracing: make a snapshot feature available from userspace.

2012-07-10 Thread Hiraku Toyooka
Hello, Rob, Thank you very much for your advice. (2012/07/05 10:01), Rob Landley wrote: On 07/04/2012 05:47 AM, Hiraku Toyooka wrote: Hello, Steven, I've sent below RFC patch, but still have no responses. This patch can be applied to current tip tree. If you have time, could you give any

Re: [RFC PATCH -tip ] tracing: make a snapshot feature available from userspace.

2012-07-10 Thread Hiraku Toyooka
Hello, Rob, Thank you very much for your advice. (2012/07/05 10:01), Rob Landley wrote: On 07/04/2012 05:47 AM, Hiraku Toyooka wrote: Hello, Steven, I've sent below RFC patch, but still have no responses. This patch can be applied to current tip tree. If you have time, could you give any

<    1   2