403Webshell
Server IP : 210.245.233.93  /  Your IP : 216.73.216.226
Web Server : Apache/2.2.15 (CentOS)
System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/libexec/perf-core/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/libexec/perf-core/tests/attr.pyc
Ñò
•˜¦_c@sddkZddkZddkZddkZddkZddkZddkZddkZdefd„ƒYZ	defd„ƒYZ
defd„ƒYZde
fd	„ƒYZd
„Zd„Zdeid
Zd„ZedjoeƒndS(iÿÿÿÿNtFailcBseZd„Zd„ZRS(cCs||_||_dS(N(tmsgttest(tselfRR((s$/usr/libexec/perf-core/tests/attr.pyt__init__
s	cCsd|ii|ifS(Ns	'%s' - %s(RtpathR(R((s$/usr/libexec/perf-core/tests/attr.pytgetMsgs(t__name__t
__module__RR(((s$/usr/libexec/perf-core/tests/attr.pyRs	tUnsupcBseZd„Zd„ZRS(cCs
||_dS(N(R(RR((s$/usr/libexec/perf-core/tests/attr.pyRscCsd|iiS(Ns'%s'(RR(R((s$/usr/libexec/perf-core/tests/attr.pyRs(RRRR(((s$/usr/libexec/perf-core/tests/attr.pyR	s	tEventc!BsžeZdddddddddd	d
ddd
ddddddddddddddddddd g!Zd!„Zd"„Zd#„Zd$„Zd%„ZRS(&tcputflagsttypetsizetconfigt
sample_periodtsample_typetread_formattdisabledtinherittpinnedt	exclusivetexclude_usertexclude_kernelt
exclude_hvtexclude_idletmmaptcommtfreqtinherit_stattenable_on_execttaskt	watermarkt
precise_ipt	mmap_datat
sample_id_alltexclude_hostt
exclude_guestt
wakeup_eventstbp_typetconfig1tconfig2tbranch_sample_typecCs<x5|D]-\}}tid||fƒ|||<qWdS(Ns
      %s = %s(tlogtdebug(Rtdatatkeytval((s$/usr/libexec/perf-core/tests/attr.pytaddHscCsAtid|ƒ||_d|_|i|ƒ|i|ƒdS(Ns    Event %st(R,R-tnametgroupR1(RR3R.tbase((s$/usr/libexec/perf-core/tests/attr.pyRMs
		
cCsu|idƒ}|idƒ}xP|D]H}x?|D]7}||jotS|djp
|djotSq2Wq%WtS(Nt|t*(tsplittTruetFalse(Rtatbta_listtb_listta_itemtb_item((s$/usr/libexec/perf-core/tests/attr.pytcompare_dataTs

cCsxztiD]o}tid|||||fƒ|i|ƒp|i|ƒotS|i||||ƒptSq
WtS(Ns      [%s] %s %s(R
ttermsR,R-thas_keyR:RAR9(Rtothertt((s$/usr/libexec/perf-core/tests/attr.pytequalbs
""	cCs‚x{tiD]p}|i|ƒp|i|ƒoq
n|i||||ƒp&tid|||||fƒq
q
WdS(Nsexpected %s=%s, got %s(R
RBRCRAR,twarning(RRDRE((s$/usr/libexec/perf-core/tests/attr.pytdiffks
"(RRRBR1RRARFRH(((s$/usr/libexec/perf-core/tests/attr.pyR
sL						tTestcBsGeZd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(cCs×tiƒ}|i|ƒtid|ƒ||_|i|_|i|_|iddƒ|_	|iddƒ|_
y|iddƒ|_Wnd|_nXh|_h|_
tidƒ|i||iƒdS(Nsrunning '%s'Rtcommandtargstretis  loading expected events(tConfigParsertSafeConfigParsertreadR,RGRttest_dirtperftgetRJRKRLtexpecttresultR-tload_events(RRtoptionstparser((s$/usr/libexec/perf-core/tests/attr.pyR~s 
	
		
cCs#|idƒdjotStSdS(Nteventiÿÿÿÿ(tfindR:R9(RR3((s$/usr/libexec/perf-core/tests/attr.pytis_event”sc
CsÌtiƒ}|i|ƒx¬t|i|iƒƒD]’}|i|ƒ}h}d|joN||idƒd}tiƒ}|i|id|ƒ|idƒ}nt	|||ƒ}	|	||<q2WdS(Nt:it/RX(
RMRNROtfilterRZtsectionstitemstindexRPR
(
RRteventstparser_eventtsectiontparser_itemst
base_itemsR5tparser_basete((s$/usr/libexec/perf-core/tests/attr.pyRUšs

cCs{d||i|i||if}titi|ƒƒ}tid||fƒ|t|i	ƒjot
|ƒ‚ndS(Ns*PERF_TEST_ATTR=%s %s %s -o %s/perf.data %ss  '%s' ret %d (RQRJRKtostWEXITSTATUStsystemR,tinfotintRLR	(RttempdirtcmdRL((s$/usr/libexec/perf-core/tests/attr.pytrun_cmd°sc
Cs°h}tidƒxè|iƒD]Ú\}}g}tid|ƒxf|iƒD]X\}}tid|ƒ|i|ƒo|i|ƒtidƒqPtidƒqPWtid|t|ƒfƒ|p |i|ƒt|dƒ‚n|||<q Wxž|iƒD]\}}|i}	|	djoqnxd||D]X}||i}
|
||	jot|d	ƒ‚ntid
|t||	ƒfƒq?WqWtidƒdS(Ns	  compares    matching [%s]s
      to [%s]s    ->OKs
    ->FAILs    match: [%s] matches %ss
match failureR2s
group failures'    group: [%s] matches group leader %ss	  matched(	R,R-R_RFtappendtstrRHRR4(RRSRTtmatchtexp_namet	exp_eventtexp_listtres_namet	res_eventR4t	res_group((s$/usr/libexec/perf-core/tests/attr.pytcompareºs>





	

	 cCs’x‹|iƒD]}\}}|d}|djoq
nxP|iƒD]B\}}|d|jo%||_tid||fƒPqDqDWq
WdS(Ntgroup_fds-1tfds[%s] has group leader [%s](R_R4R,R-(RRaR3RXRztinametievent((s$/usr/libexec/perf-core/tests/attr.pytresolve_groupsçs



	cCs¼tiƒ}z›|i|ƒtidƒx.ti|dƒD]}|i||iƒq=W|i|i	ƒ|i|iƒ|i
|i	|iƒ|i
|i|i	ƒWdti|ƒXdS(Ns  loading result eventss/event*(
ttempfiletmkdtempRoR,R-tglobRURTR~RSRytshutiltrmtree(RRmtf((s$/usr/libexec/perf-core/tests/attr.pytrunós

(	RRRRZRURoRyR~R…(((s$/usr/libexec/perf-core/tests/attr.pyRI}s				
	-	cCsrxkti|id|iƒD]L}yt||ƒiƒWqtj
o }tid|iƒƒqXqWdS(NR\s
unsupp  %s(	RRPRRIR…R	R,RGR(RVR„tobj((s$/usr/libexec/perf-core/tests/attr.pyt	run_testsscCs¹ti}|djo
ti}n|djo
ti}n|djo
ti}ntidƒati|ƒtiƒ}|i|ƒti	dƒ}|i
|ƒti|ƒdS(NiiiRs%(message)s(tloggingtCRITICALtWARNINGtINFOtDEBUGt	getLoggerR,tsetLevelt
StreamHandlert	FormattertsetFormattert
addHandler(tverbosetleveltcht	formatter((s$/usr/libexec/perf-core/tests/attr.pyt	setup_logs	








sm%s [OPTIONS]
  -d dir  # tests dir
  -p path # perf binary
  -t test # single test
  -v      # verbose level
ic	Csctidtƒ}|idddddddd	ƒ|id
dddddddƒ|id
dddddddƒ|iddddddƒ|iƒ\}}|o|iddi|ƒƒdSt|iƒ|i	pdGHt
idƒn|ip
d|_nyt
|ƒWn1tj
o%}d|iƒGHt
idƒnXt
idƒdS(Ntusages-ts--testtactiontstoreR
tstringtdestRs-ds
--test-dirRPs-ps--perfRQs-vs	--verbosetcountR“sFAILED wrong arguments %st iÿÿÿÿsFAILED no -d option specifiedstest*s	FAILED %si(toptparsetOptionParsertUSAGEt
add_optiont
parse_argsterrortjoinR—R“RPtsystexitRR‡RR(RWRVRKR†((s$/usr/libexec/perf-core/tests/attr.pytmain-s2




t__main__(RhR¦RRŸRRˆR‚RMt	ExceptionRR	tdictR
tobjectRIR‡R—targvR¡R¨R(((s$/usr/libexec/perf-core/tests/attr.pyt<module>s"^			#


Youez - 2016 - github.com/yon3zu
LinuXploit