metadata: Ignore system macros
PATCH 1/1 metadata: Ignore system macros
Ingore all macros that start with underscore. Unless we do that we get several thousands of __NR_foo macros and the hash table cannot keep up.
Signed-off-by Cyril Hrubis <[email protected]>
--- metadata/metaparse.c | 3 +++ 1 file changed, 3 insertions(+)
metadata/metaparse.c +3 -0
@@ -624,6 +624,9 @@ static void parse_macro(FILE *f)macro_get_val (f, val,sizeof (val)); +if (name[0 ] =='_' ) +return ; +ENTRY e = { .key =strdup (name), .data =strdup (val),
Signature · 5 lines
2.32.0 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Hi Cyril,
Quoted 4 lines
Ingore all macros that start with underscore. Unless we do that we get several thousands of
__NR_foomacros and the hash table cannot keep up.Signed-off-by Cyril Hrubis <[email protected]>
Reviewed-by Petr Vorel <[email protected]>
Good catch. Suppose skipping many tests does not need print info under verbose.
Kind regards,
Petr
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Hi!
Thank you both for the quick review, pushed.
Signature · 5 lines
Cyril Hrubis [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp
Hello,
Quoted 4 lines · Cyril Hrubis
Ingore all macros that start with underscore. Unless we do that we get several thousands of
__NR_foomacros and the hash table cannot keep up.Signed-off-by Cyril Hrubis <[email protected]>
Reviewed-by Richard Palethorpe <[email protected]>
Quoted 20 lines
--- metadata/metaparse.c | 3 +++ 1 file changed, 3 insertions(+)metadata/metaparse.c +3
-0@@ -624,6 +624,9 @@ static void parse_macro(FILE *f)macro_get_val (f, val,sizeof (val)); +if (name[0 ] =='_' ) +return ; +ENTRY e = { .key =strdup (name), .data =strdup (val),Signature · 1 line
2.32.0
Signature · 5 lines
Thank you, Richard. -- Mailing list info: https://lists.linux.it/listinfo/ltp