aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin
AgeCommit message (Expand)AuthorFilesLines
2018-06-06perf script powerpc: Python script for hypervisor call statisticsRavi Bangoria2-0/+4
2018-01-12perf script python: Add script to profile and resolve physical mem typeKan Liang2-0/+22
2017-08-15perf script python: Add support for exporting to sqlite3Adrian Hunter2-0/+37
2017-06-30perf intel-pt: Add example script for power events and PTWRITEAdrian Hunter2-0/+16
2016-06-21perf script: Add stackcollapse.py scriptPaolo Bonzini2-0/+11
2015-08-28perf scripts python: Add new compaction-times scriptTony Jones2-0/+6
2014-11-03perf tools: Add call information to Python exportAdrian Hunter1-5/+10
2014-10-29perf script: Add Python script to export to postgresqlAdrian Hunter2-0/+32
2014-06-25perf scripts: Fallback to syscalls:* when raw_syscalls:* is not availableDaniel Bristot de Oliveira4-4/+8
2012-09-17perf scripts: Add event_analyzing_sample-record/reportFeng Tang2-0/+11
2011-09-29perf script: Add drop monitor scriptNeil Horman2-0/+6
2010-12-25perf script: Finish the rename from trace to scriptArnaldo Carvalho de Melo7-7/+7
2010-11-10perf trace scripting: remove system-wide param from shell scriptsTom Zanussi7-7/+7
2010-10-26perf python scripting: Add futex-contention scriptArnaldo Carvalho de Melo2-0/+6
2010-10-23perf trace: Use $PERF_EXEC_PATH in canned report scriptsBen Hutchings6-6/+6
2010-09-07perf: Add a script to show packets processingKoki Sanagi2-0/+13
2010-08-02perf: New migration tool overviewFrederic Weisbecker2-0/+5
2010-05-10perf/trace/scripting: syscall-counts script cleanupTom Zanussi1-1/+1
2010-05-10perf/trace/scripting: syscall-counts-by-pid script cleanupTom Zanussi1-1/+1
2010-05-10perf/trace/scripting: failed-syscalls-by-pid script cleanupTom Zanussi1-1/+1
2010-04-30perf: Remove leftover useless options to record trace events from scriptsFrederic Weisbecker4-4/+4
2010-04-14perf trace/scripting: Enable scripting shell scripts for live modeTom Zanussi6-6/+24
2010-04-14perf trace/scripting: Add rwtop and sctop scriptsTom Zanussi2-0/+26
2010-02-25perf/scripts: Add syscall tracing scriptsTom Zanussi6-0/+18
n class="p">(int access, enum arch_timer_reg reg, u32 val) { if (access == ARCH_TIMER_PHYS_ACCESS) { switch (reg) { case ARCH_TIMER_REG_CTRL: asm volatile("mcr p15, 0, %0, c14, c2, 1" : : "r" (val)); break; case ARCH_TIMER_REG_TVAL: asm volatile("mcr p15, 0, %0, c14, c2, 0" : : "r" (val)); break; } } else if (access == ARCH_TIMER_VIRT_ACCESS) { switch (reg) { case ARCH_TIMER_REG_CTRL: asm volatile("mcr p15, 0, %0, c14, c3, 1" : : "r" (val)); break; case ARCH_TIMER_REG_TVAL: asm volatile("mcr p15, 0, %0, c14, c3, 0" : : "r" (val)); break; } } isb(); } static __always_inline u32 arch_timer_reg_read_cp15(int access, enum arch_timer_reg reg) { u32 val = 0; if (access == ARCH_TIMER_PHYS_ACCESS) { switch (reg) { case ARCH_TIMER_REG_CTRL: asm volatile("mrc p15, 0, %0, c14, c2, 1" : "=r" (val)); break; case ARCH_TIMER_REG_TVAL: asm volatile("mrc p15, 0, %0, c14, c2, 0" : "=r" (val)); break; } } else if (access == ARCH_TIMER_VIRT_ACCESS) { switch (reg) { case ARCH_TIMER_REG_CTRL: asm volatile("mrc p15, 0, %0, c14, c3, 1" : "=r" (val)); break; case ARCH_TIMER_REG_TVAL: asm volatile("mrc p15, 0, %0, c14, c3, 0" : "=r" (val)); break; } } return val; } static inline u32 arch_timer_get_cntfrq(void) { u32 val; asm volatile("mrc p15, 0, %0, c14, c0, 0" : "=r" (val)); return val; } static inline u64 arch_counter_get_cntpct(void) { u64 cval; isb(); asm volatile("mrrc p15, 0, %Q0, %R0, c14" : "=r" (cval)); return cval; } static inline u64 arch_counter_get_cntvct(void) { u64 cval; isb(); asm volatile("mrrc p15, 1, %Q0, %R0, c14" : "=r" (cval)); return cval; } static inline u32 arch_timer_get_cntkctl(void) { u32 cntkctl; asm volatile("mrc p15, 0, %0, c14, c1, 0" : "=r" (cntkctl)); return cntkctl; } static inline void arch_timer_set_cntkctl(u32 cntkctl) { asm volatile("mcr p15, 0, %0, c14, c1, 0" : : "r" (cntkctl)); isb(); } #endif #endif