diff options
| author | Greg Dietsche <Gregory.Dietsche@cuw.edu> | 2011-11-05 21:59:44 -0400 |
|---|---|---|
| committer | Michal Marek <mmarek@suse.cz> | 2012-01-14 16:25:56 -0500 |
| commit | f95ab20972cfefa8ee5428d6c3afd4cb8eacabf4 (patch) | |
| tree | 545ecec1bbb70e0172be353a4a25446bb85371d1 | |
| parent | d0bc1fb4672b978b608400a5112249cdbc28f9ae (diff) | |
coccinelle.txt: update documentation to include M= option
Adding documentation for the new M= option which limits Coccinelle
to a specific set of directories.
Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Michal Marek <mmarek@suse.cz>
| -rw-r--r-- | Documentation/coccinelle.txt | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Documentation/coccinelle.txt b/Documentation/coccinelle.txt index 96b690348ba1..cf44eb6499b4 100644 --- a/Documentation/coccinelle.txt +++ b/Documentation/coccinelle.txt | |||
| @@ -102,9 +102,15 @@ or | |||
| 102 | make coccicheck COCCI=<my_SP.cocci> MODE=report | 102 | make coccicheck COCCI=<my_SP.cocci> MODE=report |
| 103 | 103 | ||
| 104 | 104 | ||
| 105 | Using Coccinelle on (modified) files | 105 | Controlling Which Files are Processed by Coccinelle |
| 106 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 106 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 107 | By default the entire kernel source tree is checked. | ||
| 108 | |||
| 109 | To apply Coccinelle to a specific directory, M= can be used. | ||
| 110 | For example, to check drivers/net/wireless/ one may write: | ||
| 107 | 111 | ||
| 112 | make coccicheck M=drivers/net/wireless/ | ||
| 113 | |||
| 108 | To apply Coccinelle on a file basis, instead of a directory basis, the | 114 | To apply Coccinelle on a file basis, instead of a directory basis, the |
| 109 | following command may be used: | 115 | following command may be used: |
| 110 | 116 | ||
