summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/export-to-postgresql-report
blob: cd335b6e2a01479d066ffe398d76723abf5e742c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
# description: export perf data to a postgresql database
# args: [database name] [columns] [calls]
n_args=0
for i in "$@"
do
    if expr match "$i" "-" > /dev/null ; then
	break
    fi
    n_args=$(( $n_args + 1 ))
done
if [ "$n_args" -gt 3 ] ; then
    echo "usage: export-to-postgresql-report [database name] [columns] [calls]"
    exit
fi
if [ "$n_args" -gt 2 ] ; then
    dbname=$1
    columns=$2
    calls=$3
    shift 3
elif [ "$n_args" -gt 1 ] ; then
    dbname=$1
    columns=$2
    shift 2
elif [ "$n_args" -gt 0 ] ; then
    dbname=$1
    shift
fi
perf script $@ -s "$PERF_EXEC_PATH"/scripts/python/export-to-postgresql.py $dbname $columns $calls
dd0c8c6e99d0973459aabe554'>io-wq: Move wq accounting to io_wqGabriel Krisman Bertazi 2023-04-03io_uring: One wqe per wqBreno Leitao 2023-03-08io_uring/io-wq: stop setting PF_NO_SETAFFINITY on io-wq workersJens Axboe 2023-01-08io_uring/io-wq: only free worker if it was allocated for creationJens Axboe 2023-01-02io_uring/io-wq: free worker if task_work creation is canceledJens Axboe 2022-10-20io-wq: Fix memory leak in worker creationRafael Mendonca 2022-08-04audit, io_uring, io-wq: Fix memory leak in io_sq_thread() and io_wqe_worker()Peilin Ye 2022-07-24io_uring: dedup io_run_task_workPavel Begunkov 2022-07-24io_uring: move list helpers to a separate filePavel Begunkov 2022-07-24io_uring: move to separate directoryJens Axboe