[igt-dev] [PATCH i-g-t] tests/kms_addfb_basic: avoid excessive logging on legacy format test
Govindapillai, Vinod
vinod.govindapillai at intel.com
Thu Oct 13 07:37:59 UTC 2022
On Tue, 2022-10-11 at 22:15 +0300, Juha-Pekka Heikkila wrote:
> legacy format addfb test try to fuzz kernel with random parameters,
> these random parameters cause logging into dmesg. Limit fuzzing
> rounds to maximum of 10k (or 1 second) to limit size of created log.
>
> Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
Reviewed-by: Vinod Govindapillai <vinod.govindapillai at intel.com>
> ---
> tests/kms_addfb_basic.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/tests/kms_addfb_basic.c b/tests/kms_addfb_basic.c
> index afb4bdf6f..f91153b5b 100644
> --- a/tests/kms_addfb_basic.c
> +++ b/tests/kms_addfb_basic.c
> @@ -241,6 +241,13 @@ static void invalid_tests(int fd)
> }
>
> count++;
> +
> + /*
> + * to avoid exessive logging stop after 10k loops
> + */
> + if (count >= 10000) {
> + break;
> + }
> }
>
> /* After all the abuse, confirm the known_formats */
More information about the igt-dev
mailing list