aboutsummaryrefslogtreecommitdiffstats
path: root/samples/Makefile
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2009-10-17 08:43:17 +0200
committerIngo Molnar <mingo@elte.hu>2009-10-17 09:29:10 +0200
commitf39cdf25bf77219676ec5360980ac40b1a7e144a (patch)
tree2143a3653933efc5ffacea647ce8be72952b3a44 /samples/Makefile
parentevents: Harmonize event field names and print output names (diff)
downloadlinux-dev-f39cdf25bf77219676ec5360980ac40b1a7e144a.tar.xz
linux-dev-f39cdf25bf77219676ec5360980ac40b1a7e144a.zip
perf tools: Move dereference after NULL test
In each case, if the NULL test on thread is needed, then the dereference should be after the NULL test. A simplified version of the semantic match that detects this problem is as follows (http://coccinelle.lip6.fr/): // <smpl> @match exists@ expression x, E; identifier fld; @@ * x->fld ... when != \(x = E\|&x\) * x == NULL // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> LKML-Reference: <Pine.LNX.4.64.0910170842500.9213@ask.diku.dk> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'samples/Makefile')
0 files changed, 0 insertions, 0 deletions