summaryrefslogtreecommitdiff
path: root/scripts/per-cpu-check.awk
blob: 3be9f0d25ebd387545773ea5610b4aba4803fcd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/ __per_cpu_start$$/ {
	IN_PER_CPU=1
}

/ __per_cpu_end$$/ {
	IN_PER_CPU=0
}

/__per_cpu$$/ && ! ( / __ksymtab_/ || / __kstrtab_/ || / __kcrctab_/ ) {
	if (!IN_PER_CPU) {
		print $$3 " not in per-cpu section" > "/dev/stderr";
		FOUND=1;
	}
}

END {
	exit FOUND;
}