From: Arnaldo Carvalho de Melo Date: Fri, 6 Nov 2015 20:03:38 +0000 (-0300) Subject: perf test: Do not be case sensitive when searching for matching tests X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=345c99a303e1d97b407bf99190314a878d59ca92;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git perf test: Do not be case sensitive when searching for matching tests Before: # perf test llvm # perf test LLVM 35: Test LLVM searching and compiling : Ok # After # perf test llvm 35: Test LLVM searching and compiling : Ok # Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-c1u05npqbf6epse17ovfejoj@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/tests/builtin-test.c b/tools/perf/tests/builtin-test.c index 7b0120abc137..80c442eab767 100644 --- a/tools/perf/tests/builtin-test.c +++ b/tools/perf/tests/builtin-test.c @@ -196,7 +196,7 @@ static bool perf_test__matches(struct test *test, int curr, int argc, const char continue; } - if (strstr(test->desc, argv[i])) + if (strcasestr(test->desc, argv[i])) return true; }