mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
To: Tom Zanussi <tom.zanussi@linux.intel.com>
Cc: rostedt@goodmis.org, linux-kernel@vger.kernel.org,
	Oleg Nesterov <oleg@redhat.com>
Subject: Re: [PATCH v4 00/11] tracing: trace event triggers
Date: Thu, 08 Aug 2013 11:02:51 +0900	[thread overview]
Message-ID: <5202FC4B.7040106@hitachi.com> (raw)
In-Reply-To: <cover.1375111640.git.tom.zanussi@linux.intel.com>

Hi,

(2013/07/30 1:40), Tom Zanussi wrote:
> Hi,
> 
> This is v4 of the trace event triggers patchset, addressing more
> comments from Masami Hiramatsu (thanks for the review and comments).
> 
> One of Masami's comments was on event_trigger_regex_open's use of
> inode->i_private and that the same problem was being worked on by Oleg
> Nesterov in other places.  That still seems to be the case, but in
> order to address that, this patchset is built on top of the current
> linux-trace/for-next but also including v2 of Oleg Nesterov's tracing:
> open/delete fixes (but with v3 of the 6/6 patch). 

Does this patchset supports multibuffer? It seems that setting a
trigger in an event of an instance affects the default event, but not
the instance's event.
e.g.

# mkdir instances/hoge
# echo 'enable_event:mce:mce_record' > instances/hoge/events/syscalls/sys_enter_symlink/trigger
# cat instances/hoge/events/syscalls/sys_enter_symlink/enable
0*
# cat instances/hoge/events/mce/mce_record/enable
0
# cat events/mce/mce_record/enable
0*
# ln -sf /dev/null /tmp
# cat instances/hoge/events/mce/mce_record/enable
0
# cat events/mce/mce_record/enable
1*

This looks odd, I expected enabling mce/mce_record under instances/hoge.

And, there is a bug of ftrace itself (not introduced by this series) I've found.
After the above operation, we can delete the instance "hoge", but the soft-mode
flag of mce_record is not cleared, even though there is no trigger referring
the event.

# rmdir instances/hoge
# cat events/mce/mce_record/enable
1*

This is because the ftrace actually failed to remove(disable) the event trigger
associated with the instance when doing rmdir, but it just removed that interface.

> v4:
>  - made some changes to the soft-disable for syscall patch, according
>    to Masami's suggestions.  Actually, since there's now an array of
>    ftrace_files for syscalls that can serve the same purpose, the
>    enabled_enter/exit_syscalls bit arrays became redundant and were
>    removed.
>  - moved all the remaining common functions out of the
>    traceon/traceoff patch and into the basic trigger framework patch
>    and added comments to all the common functions.
>  - extensively commented the event_trigger_ops and event_command ops.
>  - made the register/unregister_command functions __init.  Since that
>    code was originally inspired by similar ftrace code, a new patch
>    was added to do the same thing for the register/unregister of the
>    ftrace commands (patch 10/11).
>  - fixed the event_trigger_regex_open i_private problem noted by
>    Masami that's currently being addressed by Oleg Nesterov's fixes
>    for this.  Note that that patchset also affects patch 8/11 (update
>    filters for multi-buffer, since it touches event filters as well).
>    Patch 11/11 depends on that patchset and also moves
>    event_file_data() to trace.h.b

OK, but I think the last 2 patches should be merged to 2/11 as updates.

And also, could you rebase your patches on trace/for-next branch?
Since that branch includes most of the latest fixes, it is better to
review with it.

Thank you,

-- 
Masami HIRAMATSU
IT Management Research Dept. Linux Technology Center
Hitachi, Ltd., Yokohama Research Laboratory
E-mail: masami.hiramatsu.pt@hitachi.com



  parent reply	other threads:[~2013-08-08  2:02 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-29 16:40 Tom Zanussi
2013-07-29 16:40 ` [PATCH v4 01/11] tracing: Add support for SOFT_DISABLE to syscall events Tom Zanussi
2013-08-05 11:42   ` Masami Hiramatsu
2013-07-29 16:40 ` [PATCH v4 02/11] tracing: add basic event trigger framework Tom Zanussi
2013-08-08  8:30   ` Masami Hiramatsu
2013-08-22 19:54     ` Tom Zanussi
2013-07-29 16:40 ` [PATCH v4 03/11] tracing: add 'traceon' and 'traceoff' event trigger commands Tom Zanussi
2013-07-29 16:41 ` [PATCH v4 04/11] tracing: add 'snapshot' event trigger command Tom Zanussi
2013-07-29 16:41 ` [PATCH v4 05/11] tracing: add 'stacktrace' " Tom Zanussi
2013-07-29 16:41 ` [PATCH v4 06/11] tracing: add 'enable_event' and 'disable_event' event trigger commands Tom Zanussi
2013-08-08  5:54   ` Masami Hiramatsu
2013-07-29 16:41 ` [PATCH v4 07/11] tracing: add and use generic set_trigger_filter() implementation Tom Zanussi
2013-07-29 16:41 ` [PATCH v4 08/11] tracing: update event filters for multibuffer Tom Zanussi
2013-07-29 16:41 ` [PATCH v4 09/11] tracing: add documentation for trace event triggers Tom Zanussi
2013-07-29 16:41 ` [PATCH v4 10/11] tracing: make register/unregister_ftrace_command __init Tom Zanussi
2013-07-29 16:41 ` [PATCH v4 11/11] tracing: change event_trigger_open to verify i_private != NULL Tom Zanussi
2013-08-08  2:02 ` Masami Hiramatsu [this message]
2013-08-08  2:15   ` [PATCH v4 00/11] tracing: trace event triggers Steven Rostedt
2013-08-22 19:48   ` Tom Zanussi
2013-08-22 23:26     ` Tom Zanussi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5202FC4B.7040106@hitachi.com \
    --to=masami.hiramatsu.pt@hitachi.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oleg@redhat.com \
    --cc=rostedt@goodmis.org \
    --cc=tom.zanussi@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome