403 Forbidden


Disable Functions:
Path : /usr/libexec/perf-core/scripts/python/
File Upload :
Command :
Current File : //usr/libexec/perf-core/scripts/python/compaction-times.pyo

�
G��dc@s�ddlZddlZddlZddlZejejej�dadd+d��YZdd,d��YZdd-d��YZ	d	d.d
��YZ
d�Zd�Zd
�Z
dd/d��YZdd0d��YZdd1d��YZd�Zd�Zd�Zd�Zd�Zd�Zd�ZdZdZdZejZejae Z!e"ej#�dZ$e$dkr�ej%e�Zx
e&ej#d�D]�\Z'Z(e(ddkr�e(dkr�e�e)d�q�e(d kr�ej*Zq�e(d!krej+Zq�e(d"kre,Z!q�e(d#kr4eej-�q�e(d$krPeej.�q�e(d%krleej/�q�e(d&kr�eej0�q�ej)t�q�e'e$dkr�ej1e(�Z2e2dkr2e2j3�d'kr2e2j3d(�dkre
e2j3d(�e2j3d(��Z4q|e
e2j3d�e2j3d)��Z4nJyej%e(�ZWn(ej5j6d*e(�ej)t�nXe	e�Z4ej7e4�q�q�WndS(2i����Nswusage: perf script report compaction-times.py -- [-h] [-u] [-p|-pv] [-t | [-m] [-fs] [-ms]] [pid|pid-range|comm-regex]
tpoptcBseZdZdZdZRS(iii(t__name__t
__module__tDISP_DFLt	DISP_PROCtDISP_PROC_VERBOSE(((s9/usr/libexec/perf-core/scripts/python/compaction-times.pyRsttoptcBs&eZdZdZdZdZdZRS(iiiii(RRt	DISP_TIMEtDISP_MIGt
DISP_ISOLFREEtDISP_ISOLMIGtDISP_ALL(((s9/usr/libexec/perf-core/scripts/python/compaction-times.pyRs
tcomm_filtercBseZd�Zd�ZRS(cCs
||_dS(N(tre(tselfR
((s9/usr/libexec/perf-core/scripts/python/compaction-times.pyt__init__scCs.|jj|�}|dkp-|j�dkS(Nt(R
tsearchtNonetgroup(Rtpidtcommtm((s9/usr/libexec/perf-core/scripts/python/compaction-times.pytfilter s(RRRR(((s9/usr/libexec/perf-core/scripts/python/compaction-times.pyRs	t
pid_filtercBseZd�Zd�ZRS(cCsF|dkrdn	t|�|_|dkr3dn	t|�|_dS(NRi(tinttlowthigh(RRR((s9/usr/libexec/perf-core/scripts/python/compaction-times.pyR%s!cCs,||jko*|jdkp*||jkS(Ni(RR(RRR((s9/usr/libexec/perf-core/scripts/python/compaction-times.pyR)s(RRRR(((s9/usr/libexec/perf-core/scripts/python/compaction-times.pyR$s	cCs#ttjkr|nt|BadS(N(topt_dispRR(tt((s9/usr/libexec/perf-core/scripts/python/compaction-times.pytset_type,scCs|d|S(Niʚ;((tsectnsec((s9/usr/libexec/perf-core/scripts/python/compaction-times.pytns0scCs#trd|Sdt|d�dS(Ns%dnss%dusi����i�(topt_nstround(R!((s9/usr/libexec/perf-core/scripts/python/compaction-times.pyttime3stpaircBs)eZddd�Zd�Zd�ZRS(cCs(||_||_||_||_dS(N(talabeltblabeltavaltbval(RR(R)R&R'((s9/usr/libexec/perf-core/scripts/python/compaction-times.pyR7s			cCs(|j|j7_|j|j7_|S(N(R(R)(Rtrhs((s9/usr/libexec/perf-core/scripts/python/compaction-times.pyt__add__=scCs d|j|j|j|jfS(Ns%s=%d %s=%d(R&R(R'R)(R((s9/usr/libexec/perf-core/scripts/python/compaction-times.pyt__str__BsN(RRRRR+R,(((s9/usr/libexec/perf-core/scripts/python/compaction-times.pyR%6s	tcnodecBs5eZd�Zd�Zd�Zd�Zd�ZRS(cCsU||_tdddd�|_tdddd�|_tdddd�|_dS(Nitmovedtfailedtscannedtisolated(R!R%tmigratedtfscantmscan(RR!((s9/usr/libexec/perf-core/scripts/python/compaction-times.pyRFs	cCsL|j|j7_|j|j7_|j|j7_|j|j7_|S(N(R!R2R3R4(RR*((s9/usr/libexec/perf-core/scripts/python/compaction-times.pyR+Ls
cCs�d}dt|j�}ttj@r@|d|j7}d}nttj@ry|d|r_dnd|jf7}d}nttj@r�|d|r�dnd|j	f7}n|S(	Nis%s s
migration: %sis%sfree_scanner: %st Rs%smigration_scanner: %s(
R$R!RRRR2R	R3R
R4(Rtprevts((s9/usr/libexec/perf-core/scripts/python/compaction-times.pyR,Ss
	
#	
&cCst||�|j|_dS(N(R!(Rtsecstnsecs((s9/usr/libexec/perf-core/scripts/python/compaction-times.pytcomplete`scCs^|dkr|j|7_n|dkr<|j|7_n|dkrZ|j|7_ndS(N(RR2R3R4(RR2R3R4((s9/usr/libexec/perf-core/scripts/python/compaction-times.pyt	incrementcs(RRRR+R,R:R;(((s9/usr/libexec/perf-core/scripts/python/compaction-times.pyR-Es
			
	tcheadcBs�eZiZed�ZdZed��Zed��Z	ed��Z
ed��Zed��Zed��Z
d�Zd�Zd	�Zd
�Zd�Zd�Zd
�Zd�Zd�ZRS(icCs
||_dS(N(tfobj(tclsR((s9/usr/libexec/perf-core/scripts/python/compaction-times.pyt
add_filterqscCs�d}y|j|}|j�}WnUtk
rz|jdkrZ|jj||�}nt|||�}|j|<nX|s�|j||�ndS(Ni(theadstis_filteredtKeyErrorR=RRR<tmark_pending(R>RRt
start_secststart_nsecstfilteredthead((s9/usr/libexec/perf-core/scripts/python/compaction-times.pytcreate_pendingus

!cCsV|j|}|j�sR|j�r;|j|||�qRtjjd|�ndS(Ns*missing start compaction event for pid %d
(R@RAt
is_pendingtdo_incrementtsyststderrtwrite(R>RR2R3R4RG((s9/usr/libexec/perf-core/scripts/python/compaction-times.pytincrement_pending�s

cCsS|j|}|j�sO|j�r8|j||�qOtjjd|�ndS(Ns*missing start compaction event for pid %d
(R@RARIt
make_completeRKRLRM(R>RR8R9RG((s9/usr/libexec/perf-core/scripts/python/compaction-times.pytcomplete_pending�s

ccs6ttjkr2x |jD]}|j|VqWndS(N(topt_procRRR@(R>ti((s9/usr/libexec/perf-core/scripts/python/compaction-times.pytgen�scCs|jS(N(tval(R>((s9/usr/libexec/perf-core/scripts/python/compaction-times.pytstr�scCs@||_||_td�|_d|_||_g|_dS(Ni(RRR-RTRtpendingRFtlist(RRRRF((s9/usr/libexec/perf-core/scripts/python/compaction-times.pyR�s				cCs(|j|j7_|j|j7_|S(N(R!RT(RR*((s9/usr/libexec/perf-core/scripts/python/compaction-times.pyR+�scCstt||��|_dS(N(R-R!RV(RR8R9((s9/usr/libexec/perf-core/scripts/python/compaction-times.pyRC�scCs|jj|||�dS(N(RVR;(RR2R3R4((s9/usr/libexec/perf-core/scripts/python/compaction-times.pyRJ�scCs{|jj||�tj|j7_ttjkrn|j|j7_ttjkrn|jj	|j�qnnd|_dS(N(RVR:R<RTRQRRRRWtappendR(RR8R9((s9/usr/libexec/perf-core/scripts/python/compaction-times.pyRO�scCsmttjkri|j�rixJt|j�D]6\}}tjjd|j	|j
|d|f�q,WndS(Ns%d[%s].%d: %s
i(RQRRRAt	enumerateRWRKtstdoutRMRR(RRRtpelem((s9/usr/libexec/perf-core/scripts/python/compaction-times.pyRY�scCs
|jdkS(N(RVR(R((s9/usr/libexec/perf-core/scripts/python/compaction-times.pyRI�scCs|jS(N(RF(R((s9/usr/libexec/perf-core/scripts/python/compaction-times.pyRA�scCs9|j�s5tjjd|j|j|jf�ndS(Ns%d[%s]: %s
(RARKRZRMRRRT(R((s9/usr/libexec/perf-core/scripts/python/compaction-times.pytdisplay�sN(RRR@R-RTRR=tclassmethodR?RHRNRPRSRURR+RCRJRORYRIRAR\(((s9/usr/libexec/perf-core/scripts/python/compaction-times.pyR<ls$										cCsLtjjdtj��x+tj�D]}|j�f|j�q'WdS(Ns
total: %s
(RKRZRMR<RURSR\RY(RR((s9/usr/libexec/perf-core/scripts/python/compaction-times.pyt	trace_end�s
c

Cs#tj|t||	�dd�dS(N(R<RNR%R(
t
event_nametcontextt
common_cputcommon_secstcommon_nsecst
common_pidtcommon_commtcommon_callchaintnr_migratedt	nr_failed((s9/usr/libexec/perf-core/scripts/python/compaction-times.pyt&compaction__mm_compaction_migratepages�s	cCs#tj|dt|
|�d�dS(N(R<RNRR%(R_R`RaRbRcRdReRft	start_pfntend_pfnt
nr_scannedtnr_taken((s9/usr/libexec/perf-core/scripts/python/compaction-times.pyt+compaction__mm_compaction_isolate_freepages�s	cCs#tj|ddt|
|��dS(N(R<RNRR%(R_R`RaRbRcRdReRfRjRkRlRm((s9/usr/libexec/perf-core/scripts/python/compaction-times.pyt.compaction__mm_compaction_isolate_migratepages�s	cCstj|||�dS(N(R<RP(R_R`RaRbRcRdReRft
zone_startt
migrate_startt
free_starttzone_endtsynctstatus((s9/usr/libexec/perf-core/scripts/python/compaction-times.pytcompaction__mm_compaction_end�sc

Cstj||||�dS(N(R<RH(
R_R`RaRbRcRdReRfRpRqRrRsRt((s9/usr/libexec/perf-core/scripts/python/compaction-times.pytcompaction__mm_compaction_begin�scCs�tjjt�tjjd�tjjd�tjjd�tjjd�tjjd�tjjd�tjjd�tjjd�tjjd	�dS(
Ns
s-h	display this help
s-p	display by process
s!-pv	display by process (verbose)
s-t	display stall times only
s-m	display stats for migration
s#-fs	display stats for free scanner
s(-ms	display stats for migration scanner
s9-u	display results in microseconds (default nanoseconds)
(RKRZRMtusage(((s9/usr/libexec/perf-core/scripts/python/compaction-times.pytpr_help�ss^(\d*)-(\d*)$|^(\d*)$iit-s-hs-ps-pvs-us-ts-ms-fss-msRiisinvalid regex '%s'((((((((8tosRKR
tsignaltSIGPIPEtSIG_DFLRxRRRRRR!R$R%R-R<R^RiRnRoRvRwRyRtcomm_retpid_ret	pid_regexRRQRRtTrueR"tlentargvtargctcompileRYRRtopttexitRRtFalseRRR	R
RRRtfRLRMR?(((s9/usr/libexec/perf-core/scripts/python/compaction-times.pyt<module>s�			'a									 
	$$

404 Not Found
[ LogOut ]