summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/export-to-sqlite-report
blob: 5ff6033e70ba42ce4253a00e4a922b1924e9c451 (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 sqlite3 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-sqlite-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-sqlite.py $dbname $columns $calls
>Merge tag 'for-linux-5.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds 2021-02-12mm: Remove arch_remap() and mm-arch-hooks.hChristophe Leroy 2021-02-09mm/mremap: fix BUILD_BUG_ON() error in get_extentArnd Bergmann 2020-12-29mm/mremap.c: fix extent calculationKalesh Singh 2020-12-15mremap: check if it's possible to split original vmaDmitry Safonov 2020-12-15mremap: don't allow MREMAP_DONTUNMAP on special_mappings and aioDmitry Safonov 2020-12-15mm/mremap: for MREMAP_DONTUNMAP check security_vm_enough_memory_mm()Dmitry Safonov 2020-12-15mm/mremap: account memory on do_munmap() failureDmitry Safonov 2020-12-15mm: speedup mremap on 1GB or larger regionsKalesh Singh 2020-08-07mm/mremap: start addresses are properly alignedWei Yang 2020-08-07mm/mremap: calculate extent in one placeWei Yang 2020-08-07mm/mremap: it is sure to have enough space when extent meets requirementWei Yang 2020-07-13mm: document warning in move_normal_pmd() and make it warn only onceLinus Torvalds 2020-06-09mmap locking API: convert mmap_sem commentsMichel Lespinasse 2020-06-09mmap locking API: use coccinelle to convert mmap_sem rwsem call sitesMichel Lespinasse 2020-06-04Merge branch 'akpm' (patches from Andrew)Linus Torvalds 2020-06-04mm: use false for bool variableZou Wei 2020-06-04mm: Fix mremap not considering huge pmd devmapFan Yang 2020-05-14userfaultfd: fix remap event with MREMAP_DONTUNMAPBrian Geffon 2020-04-19mm: Fix MREMAP_DONTUNMAP accounting on VMA mergeBrian Geffon 2020-04-02mm/mremap: add MREMAP_DONTUNMAP to mremap()Brian Geffon 2020-04-02mm/vma: make is_vma_temporary_stack() available for general useAnshuman Khandual 2020-03-26mm/mremap: Add comment explaining the untagging behaviour of mremap()Will Deacon 2020-02-20mm: Avoid creating virtual address aliases in brk()/mmap()/mremap()Catalin Marinas