Re: [PATCH 2/3] memcpytest: add more memcpy tests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 1/18/18 4:53 PM, Robert Elliott wrote:
> From: Robert Elliott <elliott@xxxxxxx>
> 
> Add more memcpy tests:
>     memcpy = copy with libc memcpy() (d = s)(one read, one write)
>     memcsum = read memory to registers (one read)
>     memset = write memory from registers with libc memset() (one write)
>     wmemset = write memory from registers with libc wmemset() (one write)
>     streamcopy = STREAM copy (d = s)(one read, one write)
>     streamadd = STREAM add (d = s1 + s2)(two reads, add, one write)
>     streamscale = STREAM scale (d = 3 * s1)(one read, multiply, one write)
>     streamtriad = STREAM triad (d = s1 + 3 * s2)(two reads, add and multiply, one write)

The engine changes in here don't seem related?

> +static void flush_caches(struct memcpy_type *t, struct memcpy_test *test)
> +{
> +	__builtin___clear_cache(test->src, test->src + BUF_SIZE);
> +	__builtin___clear_cache(test->src2, test->src2 + BUF_SIZE);
> +	__builtin___clear_cache(test->dst, test->dst + BUF_SIZE);
> +}

Is this going to work on all platforms? I'm fine with adding it, but
we'll probably need a configure test to ensure we don't break various
builds.

-- 
Jens Axboe

--
To unsubscribe from this list: send the line "unsubscribe fio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux