lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 6 Aug 2009 10:23:53 -0400 (EDT)
From:	Steven Rostedt <rostedt@...dmis.org>
To:	Li Zefan <lizf@...fujitsu.com>
cc:	Frédéric Weisbecker <f.weisbecker@...il.com>,
	Ingo Molnar <mingo@...e.hu>,
	LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 0/3] tracing/filters: Support specifying filter hook to
 a TRACE_EVENT field


On Thu, 6 Aug 2009, Li Zefan wrote:

> Currently only static strings and dynamic strings have their
> own filter functions, other types of field are treated as
> integers.
> 
> This patchset allows assigning a specific filter type to a
> field, so a field which is defined as:
> 
> 	__field_ext(const char *, str, FILTER_PTR_STR)
> 
> will be treated as a string but not a plain pointer, and then
> we can set the filter like this:
> 
> 	# echo 'str == foo' > filter
> 
> And it's easy to add more filter functions for different types
> to turn these into valid operations:
> 
> 	(dev is of type dev_t)
> 	# echo 'dev == 8:0' > filter
> 
> 	(callsite is of type void * or unsigned long)
> 	# echo 'callsite == skb_free' > filter
> 
> [PATCH 1/3] tracing/filters: Add filter_type to struct ftrace_event_field
> [PATCH 2/3] tracing/filters: Add __field_ext() to TRACE_EVENT
> [PATCH 3/3] tracing/filters: Support filtering for char * strings

I like the first two patches, but would like to see a V2 with the updates 
I've mentioned. The last patch I do not fully understand its purpose.

I'll wait for V2 to pull it in.

Thanks!

-- Steve


> ---
>  include/linux/ftrace_event.h       |   12 +++++++-
>  include/trace/ftrace.h             |   28 ++++++++++++++++----
>  kernel/trace/trace.h               |    2 +
>  kernel/trace/trace_events.c        |    9 ++++++-
>  kernel/trace/trace_events_filter.c |   47 +++++++++++++++++++++++++----------
>  kernel/trace/trace_export.c        |    7 +++--
>  6 files changed, 79 insertions(+), 26 deletions(-)
> 
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ