[dpdk-dev] Random failure in service_autotest
David Marchand
david.marchand at redhat.com
Wed Jul 15 15:02:31 CEST 2020
On Wed, Jul 15, 2020 at 2:56 PM Aaron Conole <aconole at redhat.com> wrote:
> I guess the service_lcore_attr_get failed, but with no useful
> information. We should have the test suite app turn the log level all
> the way up. I realize it will increase the log data even higher, but
> without it, we have no idea why this test failed.
>
> Something like the following
> ---
>
> diff --git a/app/test/test.c b/app/test/test.c
> index 94d26ab1f6..c47cb075f9 100644
> --- a/app/test/test.c
> +++ b/app/test/test.c
> @@ -150,6 +150,9 @@ main(int argc, char **argv)
>
> prgname = argv[0];
>
> + rte_log_set_global_level(RTE_LOG_DEBUG);
> + rte_log_set_level(RTE_LOGTYPE_EAL, RTE_LOG_DEBUG);
> +
> recursive_call = getenv(RECURSIVE_ENV_VAR);
> if (recursive_call != NULL) {
> ret = do_recursive_call();
> ---
>
> That way we can at least debug when it happens.
Debugging is one thing.
But here service_lcore_attr_get() has a lot of asserts that should
trigger a straight error.
--
David Marchand
More information about the dev
mailing list