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
mm/zpool: add name argument to create zpoolGanesh Mahendran 2014-12-13mm/zswap: delete unnecessary check before calling free_percpu()Markus Elfring 2014-12-13mm/zswap: add __init to some functions in zswapMahendran Ganesh 2014-11-20Merge Linus' tree to be be to apply submitted patches to newer code thanJiri Kosina 2014-11-13zbud, zswap: change module author emailSeth Jennings 2014-08-08mm/zswap.c: add __init to zswap_entry_cache_destroy()Fabian Frederick 2014-08-08mm: memcontrol: rewrite uncharge APIJohannes Weiner 2014-08-06mm/zpool: update zswap to use zpoolDan Streetman 2014-06-04mm/zswap: NUMA aware allocation for zswap_dstmemEric Dumazet 2014-04-07Merge branch 'akpm' (incoming from Andrew)Linus Torvalds 2014-04-07mm/zswap.c: remove unnecessary parenthesesSeongJae Park 2014-04-07mm/zswap: support multiple swap devicesMinchan Kim 2014-04-07mm/zswap.c: update zsmalloc in comment to zbudSeongJae Park 2014-04-07mm/zswap.c: fix trivial typo and arrange indentationSeongJae Park 2014-03-20mm, zswap: Fix CPU hotplug callback registrationSrivatsa S. Bhat 2014-01-23mm/zswap.c: change params from hidden to roDan Streetman 2013-11-13mm/zswap: refactor the get/put routinesWeijie Yang 2013-11-13mm/zswap: bugfix: memory leak when invalidate and reclaim occur concurrentlyWeijie Yang 2013-11-13mm/zswap: avoid unnecessary page scanningWeijie Yang 2013-10-16mm/zswap: bugfix: memory leak when re-swaponWeijie Yang 2013-09-11mm/zswap: use postorder iteration when destroying rbtreeCody P Schafer 2013-09-11mm/zswap.c: get swapper address_space by using macroSunghan Suh 2013-07-10zswap: add to mm/Seth Jennings