[Cocci] filtering functions from code
Julia Lawall
julia.lawall at lip6.fr
Mon Feb 27 20:47:53 CET 2012
On Mon, 27 Feb 2012, ron minnich wrote:
> version issue? Is the virtual stuff new?
Which version do you have? It is not very new.
julia
>
>
> rminnich at xcpu:/usr/local/google/cctest$ cat extract_bios.sh
> #!/bin/bash
> spatch -sp_file delfunc.cocci -D picked=intel_setup_bios -U 0
> /usr/local/google/stumpy/src/third_party/kernel/files/drivers/gpu/drm/i915/intel_bios.c
> > res
>
> cat delfunc.cocci
> @removefuncs@
> identifier virtual.picked;
> @@
> -picked(...){...}
>
>
> rminnich at xcpu:/usr/local/google/cctest$ sh extract_bios.sh
> init_defs_builtins: /usr/share/coccinelle/standard.h
> Fatal error: exception Failure("meta: parse error:
> = File "delfunc.cocci", line 2, column 18, charpos = 32
> around = '.', whole content = identifier virtual.picked;
> ")
> rminnich at xcpu:/usr/local/google/cctest$
>
More information about the Cocci
mailing list