Linux Audio

Check our new training course

Loading...
Note: File does not exist in v3.5.6.
 1#include <linux/compiler.h>
 2#include "../tests.h"
 3
 4typedef struct _buf {
 5	char data1;
 6	char reserved[55];
 7	char data2;
 8} buf __attribute__((aligned(64)));
 9
10static buf buf1 = {
11	/* to have this in the data section */
12	.reserved[0] = 1,
13};
14
15static int datasym(int argc __maybe_unused, const char **argv __maybe_unused)
16{
17	for (;;) {
18		buf1.data1++;
19		buf1.data2 += buf1.data1;
20	}
21	return 0;
22}
23
24DEFINE_WORKLOAD(datasym);