[LTP] [PATCH v2 4/4] Add delay bias for difficult races
Petr Vorel
pvorel@suse.cz
Tue Sep 11 00:38:08 CEST 2018
Hi Richard,
> Races with short exploitation windows and nonlinear timings, given varying
> chronological order, appear to require an offset to the synchronisation to
> achieve the correct order so that the average timings are valid for the race
> condition.
> Signed-off-by: Richard Palethorpe <rpalethorpe@suse.com>
> ---
> +static void tst_fzsync_pair_add_bias(struct tst_fzsync_pair *pair, int change)
> +{
> + if (pair->sampling > 0) {
> + pair->delay_bias += change;
> + pair->discard_flag = 1;
> + }
> +}
Minor warning due being in header and not in C file:
../../../include/tst_fuzzy_sync.h:753:13: warning: ‘tst_fzsync_pair_add_bias’ defined but not used [-Wunused-function]
static void tst_fzsync_pair_add_bias(struct tst_fzsync_pair *pair, int change)
Kind regards,
Petr
More information about the ltp
mailing list