perf tools: Enhance glob string matching
authorMasami Hiramatsu <mhiramat@redhat.com>
Tue, 5 Jan 2010 22:47:24 +0000 (17:47 -0500)
committerIngo Molnar <mingo@elte.hu>
Wed, 13 Jan 2010 09:09:14 +0000 (10:09 +0100)
commit6964cd2c8efe6e048401f1fe3952a06c563c34c1
tree04fa2a5fcfdba181f512a84a6c9286c59949fc71
parentfb1d2edf7ee25a26ad0b238d0ee335a3b28b7aa3
perf tools: Enhance glob string matching

Enhance strglobmatch() for supporting character classes([CHARS],
complementation and ranges are also supported) and escaped
special characters (\*, \? etc).

Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: systemtap <systemtap@sources.redhat.com>
Cc: DLE <dle-develop@lists.sourceforge.net>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Mike Galbraith <efault@gmx.de>
LKML-Reference: <20100105224724.19431.56271.stgit@dhcp-100-2-132.bos.redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/util/string.c