lkml.org 
[lkml]   [2009]   [Sep]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [GIT PULL v2] bkl tracepoints + filter regex support
From
Date
On Thu, 2009-09-24 at 22:44 +0200, Frederic Weisbecker wrote:

> I don't quite understand why.
>
> Typing file == "*reiserfs*" looks more intuitive.
>
> It's true that the filters should stay tight to the C syntax,
> but following this guideline up to the point that we are forced to
> use function expressions to do something that can be expressed
> much more easily and more intuitively (IMHO), that all sounds like
> an overkill.
>
> The use of glob is a very primary need for filters, it's
> so much a basic requirement for it that it should be native
> in its language.

The thing that my fingers know is awk syntax:

file ~ /reiserfs/

I'd very much prefer to keep == for strict equality, however the above
requires actual regex bits.

Remember, there are no second chances for the filter syntax anymore.



\
 
 \ /
  Last update: 2009-09-24 22:53    [W:1.144 / U:0.808 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site