2 # description: export perf data to a postgresql database
3 # args: [database name] [columns] [calls]
7 if expr match "$i" "-" > /dev/null ; then
10 n_args=$(( $n_args + 1 ))
12 if [ "$n_args" -gt 3 ] ; then
13 echo "usage: export-to-postgresql-report [database name] [columns] [calls]"
16 if [ "$n_args" -gt 2 ] ; then
21 elif [ "$n_args" -gt 1 ] ; then
25 elif [ "$n_args" -gt 0 ] ; then
29 perf script $@ -s "$PERF_EXEC_PATH"/scripts/python/export-to-postgresql.py $dbname $columns $calls