Ñò s×6Xc@s´ddkZddkZddklZlZddkZddkZddklZdZdZ ede Z d„Z d„Z d „Z d „Zeid eiZd ged „Zed„Zdd d„ZedjoÎddkZeiddƒZeiddddddƒeiddddddƒeidddddƒeidddddƒeid dd!d"d#ƒeiƒZe ƒZei p ei!o d$GeGHnei!oei"d%ƒne ƒZ#ei$oed#d&dd'ei%ƒZ&n`e'ei(ƒd%joed'ei%ƒZ&n4d%Z&x*ei(D]Z)e&ee)d'ei%ƒ7Z&qBWe&d%joei*d(IJneƒZ+ei,i-e+ƒo d)Ge+GHq°ndS(*iÿÿÿÿN(turlopentURLError(tfnmatchshttps://download.01.org/perfmons mapfile.csvt/cCstddƒ}dddg}xÃ|D]»}|iƒ}|ddjo|d|dIf you need a proxy to access the internet please set it with:s' export https_proxy=http://proxyname...sOIf you are not connected to the internet please run this on a connected system:s event_download.py '%s's:and then copy ~/.cache/pmu-events to the system under tests(To get events for all possible CPUs use:s event_download.py -asCannot write events file:(R)R4t modelpathR RRR-trstripR tlenRR t startswithRt allowed_charsturlpathtremoveR"tretsubtsymlinktsyststderrR0R(tmatchtkeytlinktfoundR2tmodelsRRRtversiontnamettypeR1R3tlnamete((s!/root/pmu-tools/event_download.pytdownloadRsb  ;   #&      cCsttƒd|ƒS(sVDownload JSON event list for current cpu. Returns >0 when a event list is foundRF(RNR(RF((s!/root/pmu-tools/event_download.pytdownload_current„scCs.|p tƒ}ntƒ}d|||fS(Ns %s/%s-%s.json(RR)(RJREtcache((s!/root/pmu-tools/event_download.pyteventlist_name‰s  t__main__tusagesdownload Intel event filess--alls-athelps"Download all available event filestactiont store_trues --verboses-vs Be verboses--minesPrint name of current CPUs--links.Create links with the original event file nametcpussCPU identifiers to downloadtnargst*sMy CPUiRERFs Nothing founds my event list(.RBR?turllib2RRRtstringRR=tmapfileR8RRR)R4t ascii_letterstdigitsR<tTrueRNtFalseROR RQt__name__targparsetArgumentParsertpt add_argumentt parse_argstargstcpustrtverbosetminetexitR$RRFRGR:RWRRCtelRtexists(((s!/root/pmu-tools/event_download.pytsX        2