[LTP] [PATCH 2/2] syscalls: Add timer measurement library

Cyril Hrubis chrubis@suse.cz
Thu Jun 22 16:25:06 CEST 2017


Hi!
> No, nothing at the time nanosleep01 was running.
> 
> We carry patch below in our tests, so it's easier to link some dmesg
> output with testcases.
> 
> diff --git a/pan/ltp-pan.c b/pan/ltp-pan.c
> index cee71aa..79dc3fa 100644
> --- a/pan/ltp-pan.c
> +++ b/pan/ltp-pan.c
> @@ -1360,6 +1360,12 @@ static void write_test_start(struct tag_pgrp *running)
>  		     running->cmd->cmdline, "", "exit", "<<<test_output>>>");
>  	}
>  	fflush(stdout);
> +
> +	FILE *f = fopen("/dev/kmsg", "w");
> +	if (f) {
> +		fprintf(f, "ltptest %s start\n", running->cmd->name);
> +		fclose(f);
> +	}
>  }

That sounds reasonable. Maybe we can add an option to ltp-pan and runltp
to enable this.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list