X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=Documentation%2Fdev-tools%2Fcoccinelle.rst;h=9c454de5a7f74b25b57fb40e330db22ed9c72bd0;hb=2f2fce3d535779cb1b0d77ce839029d5d875d4f4;hp=74c5e6aeeff55511467ced359aae6fbc5abcc4dc;hpb=301ed833974fafa8886bd5050dff0d8d5f7ada4d;p=linux-2.6-microblaze.git diff --git a/Documentation/dev-tools/coccinelle.rst b/Documentation/dev-tools/coccinelle.rst index 74c5e6aeeff5..9c454de5a7f7 100644 --- a/Documentation/dev-tools/coccinelle.rst +++ b/Documentation/dev-tools/coccinelle.rst @@ -224,14 +224,21 @@ you may want to use:: rm -f err.log export COCCI=scripts/coccinelle/misc/irqf_oneshot.cocci - make coccicheck DEBUG_FILE="err.log" MODE=report SPFLAGS="--profile --show-trying" M=./drivers/mfd/arizona-irq.c + make coccicheck DEBUG_FILE="err.log" MODE=report SPFLAGS="--profile --show-trying" M=./drivers/mfd err.log will now have the profiling information, while stdout will provide some progress information as Coccinelle moves forward with work. +NOTE: + DEBUG_FILE support is only supported when using coccinelle >= 1.0.2. +Currently, DEBUG_FILE support is only available to check folders, and +not single files. This is because checking a single file requires spatch +to be called twice leading to DEBUG_FILE being set both times to the same value, +giving rise to an error. + .cocciconfig support --------------------