4 project
=$
(echo "$2" | cut
-d = -f 2)
6 if [[ "$file" = "" ]] ; then
7 echo "Usage: $0 <file with smatch messages> -p=<project>"
11 if [[ "$project" != "kernel" ]] ; then
15 outfile
="kernel.dma_funcs"
17 remove
=$
(echo ${bin_dir}/..
/smatch_data
/${outfile}.remove
)
18 tmp
=$
(mktemp
/tmp
/smatch.XXXX
)
19 tmp2
=$
(mktemp
/tmp
/smatch.XXXX
)
21 echo "// list of DMA function and buffer parameters." > $outfile
22 echo '// generated by `gen_dma_funcs.sh`' >> $outfile
23 ${bin_dir}/trace_params.pl
$file usb_control_msg
6 >> $tmp
24 ${bin_dir}/trace_params.pl
$file usb_fill_bulk_urb
3 >> $tmp
25 cat $tmp |
sort -u > $tmp2
27 cat $tmp $remove $remove 2> /dev
/null |
sort |
uniq -u >> $outfile
29 echo "Done. List saved as '$outfile'"