Lines Matching +full:high +full:- +full:dynamic +full:- +full:output

13 tree-wide patches and detection of problematic programming patterns.
22 which are provided by Coccinelle version 1.0.0-rc11 and above.
29 .. rst-class:: rst-columns
49 .. code-block:: console
57 .. code-block:: console
76 ``coccicheck`` checker is the front-end to the Coccinelle infrastructure
80 ``org``. The mode to use is specified by setting ``--mode=<mode>`` or
81 ``-m=<mode>``.
86 file:line:column-column: message
89 diff-like style.Lines of interest are indicated with ``-``.
98 - ``chain`` tries the previous modes in the order above until one succeeds.
100 - ``rep+ctxt`` runs successively the report mode and the context mode.
109 .. code-block:: console
111 ./scripts/coccicheck --mode=report
115 .. code-block:: console
117 ./scripts/coccicheck --mode=patch
120 sub-directories of ``scripts/coccinelle`` to the entire source code tree.
129 To enable verbose messages set ``--verbose=1`` option, for example:
131 .. code-block:: console
133 ./scripts/coccicheck --mode=report --verbose=1
139 the parallelism, set the ``--jobs=<number>`` option. For example, to run
142 .. code-block:: console
144 ./scripts/coccicheck --mode=report --jobs=4
149 When parmap is enabled ``coccicheck`` will enable dynamic load balancing by using
150 ``--chunksize 1`` argument, this ensures we keep feeding threads with work
152 a few threads. With dynamic load balancing, if a thread finishes early we keep
162 The option ``--cocci`` can be used to check a single
168 .. code-block:: console
170 ./scripts/coccicheck --mode=report --cocci=<example.cocci>
174 .. code-block:: console
176 ./scripts/coccicheck --mode=report --cocci=./path/to/<example.cocci>
189 .. code-block:: console
191 ./scripts/coccicheck --mode=patch drivers/usb/
194 ``--mode=<mode>`` option explained above.
207 can specify the ``--debug=file.err`` option to ``coccicheck``. For
210 .. code-block:: console
212 rm -f cocci.err
213 ./scripts/coccicheck --mode=patch --debug=cocci.err
225 .. code-block:: console
227 ./scripts/coccicheck --sp-flag="--use-glimpse"
231 is in the file .id-utils.index on the top level of the kernel, coccinelle
234 .. code-block:: console
236 mkid -i C --output .id-utils.index
241 .. code-block:: console
243 ./scripts/coccicheck --sp-flag="--use-idutils"
248 .. code-block:: console
250 ./scripts/coccicheck --sp-flag="--use-idutils /full-path/to/ID"
255 ``---macro-file-builtins <headerfile.h>`` flag.
266 .. code-block:: console
273 .. code-block:: console
275 ./scripts/coccicheck --sp-flag="---macro-file-builtins mymacros.h"
277 See ``spatch --help`` to learn more about spatch options.
279 Note that the ``--use-glimpse`` and ``--use-idutils`` options
293 .. code-block:: console
295 // Options: --no-includes --include-headers
302 sub-directories of ``scripts/coccinelle/``.
315 .. code-block:: console
325 .. code-block:: console
333 the script. It can be either ``High``, ``Moderate`` or ``Low`` depending
339 .. code-block:: console
341 // Confidence: High
350 .. code-block:: console
371 .. code-block:: console
373 file:line:column-column: message
380 .. code-block:: console
382 ./scripts/coccicheck --mode=report --cocci=scripts/coccinelle/array_size.cocci
386 .. code-block:: console
412 This SmPL excerpt generates entries on the standard output, as
415 .. code-block:: console
417 ext/hal/nxp/mcux/drivers/lpc/fsl_wwdt.c:66:49-50: WARNING: Use ARRAY_SIZE
418 ext/hal/nxp/mcux/drivers/lpc/fsl_ctimer.c:74:53-54: WARNING: Use ARRAY_SIZE
419 ext/hal/nxp/mcux/drivers/imx/fsl_dcp.c:944:45-46: WARNING: Use ARRAY_SIZE
433 .. code-block:: console
435 ./scripts/coccicheck --mode=patch --cocci=scripts/coccinelle/misc/array_size.cocci
439 .. code-block:: console
448 - (sizeof(E)/sizeof(*E))
451 - (sizeof(E)/sizeof(E[...]))
454 - (sizeof(E)/sizeof(T))
460 This SmPL excerpt generates patch hunks on the standard output, as
463 .. code-block:: console
465 …diff -u -p a/ext/lib/encoding/tinycbor/src/cborvalidation.c b/ext/lib/encoding/tinycbor/src/cborva…
466 --- a/ext/lib/encoding/tinycbor/src/cborvalidation.c
468 @@ -325,7 +325,7 @@ static inline CborError validate_number(
472 - const size_t knownTagCount = sizeof(knownTagData) / sizeof(knownTagData[0]);
481 in a diff-like style.
484 The diff-like output generated is NOT an applicable patch. The
486 (annotated with minus, ``-``) and gives some surrounding context
487 lines around. This output can be used with the diff mode of
495 .. code-block:: console
497 ./scripts/coccicheck --mode=context --cocci=scripts/coccinelle/array_size.cocci
501 .. code-block:: console
519 This SmPL excerpt generates diff hunks on the standard output, as
522 .. code-block:: console
524 …diff -u -p ext/lib/encoding/tinycbor/src/cborvalidation.c /tmp/nothing/ext/lib/encoding/tinycbor/s…
525 --- ext/lib/encoding/tinycbor/src/cborvalidation.c
527 @@ -325,7 +325,6 @@ static inline CborError validate_number(
531 - const size_t knownTagCount = sizeof(knownTagData) / sizeof(knownTagData[0]);
545 .. code-block:: console
547 ./scripts/coccicheck --mode=org --cocci=scripts/coccinelle/misc/array_size.cocci
551 .. code-block:: console
575 This SmPL excerpt generates Org entries on the standard output, as
578 .. code-block:: console
580 …* TODO [[view:ext/lib/encoding/tinycbor/src/cborvalidation.c::face=ovl-face1::linb=328::colb=52::c…