Print this page
12166 resync smatch to 0.6.1-rc1-il-3

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/smatch/src/smatch_scripts/gen_rosenberg_funcs.sh
          +++ new/usr/src/tools/smatch/src/smatch_scripts/gen_rosenberg_funcs.sh
↓ open down ↓ 17 lines elided ↑ open up ↑
  18   18  tmp=$(mktemp /tmp/smatch.XXXX)
  19   19  tmp2=$(mktemp /tmp/smatch.XXXX)
  20   20  
  21   21  echo "// list of copy_to_user function and buffer parameters." > $outfile
  22   22  echo '// generated by `gen_rosenberg_funcs.sh`' >> $outfile
  23   23  ${bin_dir}/trace_params.pl $file copy_to_user 1 >> $tmp
  24   24  ${bin_dir}/trace_params.pl $file rds_info_copy 1 >> $tmp
  25   25  ${bin_dir}/trace_params.pl $file nla_put 3 >> $tmp
  26   26  ${bin_dir}/trace_params.pl $file snd_timer_user_append_to_tqueue 1 >> $tmp
  27   27  ${bin_dir}/trace_params.pl $file __send_signal 1 >> $tmp
       28 +${bin_dir}/trace_params.pl $file usb_bulk_msg 2 >> $tmp
  28   29  
  29   30  cat $tmp | sort -u > $tmp2
  30   31  mv $tmp2 $tmp
  31   32  cat $tmp $remove $remove 2> /dev/null | sort | uniq -u >> $outfile
  32   33  rm $tmp
  33   34  echo "Done.  List saved as '$outfile'"
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX