diff options
Diffstat (limited to 'lib/igt_kmod.c')
-rw-r--r-- | lib/igt_kmod.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/igt_kmod.c b/lib/igt_kmod.c index a861a5f2..388be30f 100644 --- a/lib/igt_kmod.c +++ b/lib/igt_kmod.c @@ -341,7 +341,9 @@ static void kmsg_dump(int fd) } } -void igt_kselftests(const char *module_name, const char *module_options) +void igt_kselftests(const char *module_name, + const char *module_options, + const char *filter) { const char *param_prefix = "igt__"; const int param_len = strlen(param_prefix); @@ -378,6 +380,10 @@ void igt_kselftests(const char *module_name, const char *module_options) if (!val || strncmp(val, param_prefix, param_len)) continue; + if (filter && + strncmp(val + param_len, filter, strlen(filter))) + continue; + subtest = strdup(val); colon = strchr(subtest, ':'); *colon = '\0'; |