From xen-api-bounces@lists.xenproject.org Thu Mar 21 15:45:00 2019
Return-path: <xen-api-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xen.org
Delivery-date: Thu, 21 Mar 2019 15:45:00 +0000
Received: from localhost ([127.0.0.1] helo=lists.xenproject.org)
	by lists.xenproject.org with esmtp (Exim 4.89)
	(envelope-from <xen-api-bounces@lists.xenproject.org>)
	id 1h6zsD-0001vA-Dz; Thu, 21 Mar 2019 15:44:53 +0000
Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6])
 by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from
 <SRS0=Zb5c=RY=correo.udistrital.edu.co=daparrag@srs-us1.protection.inumbo.net>)
 id 1h6zsC-0001v5-8l
 for xen-api@lists.xenproject.org; Thu, 21 Mar 2019 15:44:52 +0000
X-Inumbo-ID: 426d37a8-4bf0-11e9-bc90-bc764e045a96
Received: from mail-lf1-x12c.google.com (unknown [2a00:1450:4864:20::12c])
 by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS
 id 426d37a8-4bf0-11e9-bc90-bc764e045a96;
 Thu, 21 Mar 2019 15:44:50 +0000 (UTC)
Received: by mail-lf1-x12c.google.com with SMTP id p1so4902505lfk.9
 for <xen-api@lists.xenproject.org>; Thu, 21 Mar 2019 08:44:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=correo-udistrital-edu-co.20150623.gappssmtp.com; s=20150623;
 h=mime-version:from:date:message-id:subject:to;
 bh=P7VBs5M6uXNqOLltyphwi++7jWrHEWMKpP439jPorZk=;
 b=VVjARG+TI7q+FGYoq7tDBbkW4v3i4BEk3lDMPHIOq0bWd0yX7q1rDrjnJUHoSdvkVu
 +vvrZSYWwkmdB14iD/mjbeKRLVByzxL1hwhv8M1ly2Jju/CWRzCisJ247ELb8pVs69Ce
 WyltOIf3kL5bIPqICo8E1JrEfBEWYtvutea8PAU5kkhRKS9sYduELd/OxtB8aiguQkLB
 4wXtpAayLf2XtxrCaeXrAJDsXuTlPICnEDwcQI/aLCr594mu4Idf1McgPeVKo3yyyE5D
 gKCalm+OYC5YpUMug2qbexlmuUZBF4axmsQgjIDADoKzLOY66MQ4iVxqtpxjK0WoRdkB
 Q2ZA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=P7VBs5M6uXNqOLltyphwi++7jWrHEWMKpP439jPorZk=;
 b=J+LbtZCRy3B8fuWw2Q/bYzVoHe/AEBbfnrgH0dEsJMuqTPWiEvhmxu/x5tA/ucHd7n
 RexFmEGYW1MVk7PwVs22Ub9N/epET6mXrr/GRxOSIOwqY69rmDaT2J+oMAKmFMMNUpN4
 aCMbjZ06Woc3XS08Jorow/UpcnuvE3pp4pEKRgCcx06BR2HjvKZXByai/IEBtHXcrqZy
 c3z8K2Pub3SRWkWRW65HXPb5pykn7uVWDluaw73UeDzX/ngriZ60x+z0Bq2DL9ZbgRFf
 KQD6bO+BuQCDDRXce+xqpE1cokOX926nM4jfdd/bPQ7GdVkzlrvnmOM8Pca9XwTyjoPv
 ufgw==
X-Gm-Message-State: APjAAAVDOKiS3eOODssxMy8TzRxohZede+PT+0lJ1W63FQMwLBXtvt4R
 VDa0wwgx+zM1aowshfwFIjlUVXXD+mHJUsoZJo2wkkk3M9X4FA==
X-Google-Smtp-Source: APXvYqz3V0BCTeR+MkQNNGyVUezAfX71qXAcHsSR7JEV74CnN3AVgj87eLsoHi3UCQbfOgJLG7Ye3OHIZ6uioLqABM0=
X-Received: by 2002:a19:f607:: with SMTP id x7mr2369275lfe.111.1553183088359; 
 Thu, 21 Mar 2019 08:44:48 -0700 (PDT)
MIME-Version: 1.0
From: Diego Alejandro Parra Guzman <daparrag@correo.udistrital.edu.co>
Date: Thu, 21 Mar 2019 16:44:37 +0100
Message-ID: <CAMWmVVAUM7djs4a8x2xBcXPzb6Sz8G8iOcT3AN0cTZj999ONEA@mail.gmail.com>
To: xen-api@lists.xenproject.org
Subject: [Xen-API] Profiling tools for ARM64
X-BeenThere: xen-api@lists.xenproject.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: User and development list for XCP and XAPI
 <xen-api.lists.xenproject.org>
List-Unsubscribe: <https://lists.xenproject.org/mailman/options/xen-api>,
 <mailto:xen-api-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:xen-api@lists.xenproject.org>
List-Help: <mailto:xen-api-request@lists.xenproject.org?subject=help>
List-Subscribe: <https://lists.xenproject.org/mailman/listinfo/xen-api>,
 <mailto:xen-api-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============4913164003534191708=="
Errors-To: xen-api-bounces@lists.xenproject.org
Sender: "Xen-api" <xen-api-bounces@lists.xenproject.org>

--===============4913164003534191708==
Content-Type: multipart/alternative; boundary="00000000000040d1fc05849c9ef4"

--00000000000040d1fc05849c9ef4
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

HI Everyone



My name is diego. I'm very interesting in extend the XenOprof to ARM64
based architectures, and also integrate some tools for hypervisor and
application profiling and performance evaluation.


I read the documentation for Oprofile a perf which is in the wiki page and
I noticed that XEN doesn't support ARM64 architectures.  For this reason I
have two ideas.


1. Add support for ARM64 architectures to XenOprof  in its current
implementation.


2. I found an interesting library called libpfm4 which also work with
perf_event, and support ARM64 and ARM32 architectures. Well I can tray to
use this library in order to profile DOM0 and DOMU-VP guest.


Personally I prefer the option 2 since the  library currently works in
normal linux OS and I guest could be easy to replicate it on XEN.



Approaches:


   - (hypercalls) from DOM0-DOMU to xen
   - (direct pass through from DOM0 to PMU counters), and VPMU in DOMU .

Here my questions?



   - *I would like to know if currently DOM0 and DOMU have support to
   perf_event i.e., they can read directly performance monitoring unit (PMU=
)
   counters, only DOM0 or none of them?*
   - *should I implement some traps in XEN hypervisor ?*
   - *some one  currently  is  working on this?*
   - *Which is the most **efficient** way to implement it ?*
   - *There is a guide line to do this easily?*

chears
--=20
Diego Alejandro Parra Guzm=C3=A1n
Estudiante de ingenier=C3=ADa electr=C3=B3nica
Universidad distrital FJC

--00000000000040d1fc05849c9ef4
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><p class=3D"gmail-MsoPlainText" style=3D"=
margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><spa=
n lang=3D"EN-US">HI Everyone</span></p>

<p class=3D"gmail-MsoPlainText" style=3D"margin:0cm 0cm 0.0001pt;font-size:=
11pt;font-family:Calibri,sans-serif"><span lang=3D"EN-US">=C2=A0</span></p>

<p class=3D"gmail-MsoPlainText" style=3D"margin:0cm 0cm 0.0001pt;font-size:=
11pt;font-family:Calibri,sans-serif"><span lang=3D"EN-US">My name
is diego. I&#39;m very interesting in extend the XenOprof to ARM64 based ar=
chitectures, and also integrate some tools for hypervisor and application p=
rofiling and performance evaluation.</span></p><p class=3D"gmail-MsoPlainTe=
xt" style=3D"margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,san=
s-serif"><span lang=3D"EN-US"><br></span></p><p class=3D"gmail-MsoPlainText=
" style=3D"margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-=
serif"><span lang=3D"EN-US">I read the documentation for Oprofile a perf wh=
ich is in the wiki page and I noticed that XEN doesn&#39;t support ARM64 ar=
chitectures.=C2=A0 For this reason I have two ideas.</span></p><p class=3D"=
gmail-MsoPlainText" style=3D"margin:0cm 0cm 0.0001pt;font-size:11pt;font-fa=
mily:Calibri,sans-serif"><span lang=3D"EN-US"><br></span></p><p class=3D"gm=
ail-MsoPlainText" style=3D"margin:0cm 0cm 0.0001pt;font-size:11pt;font-fami=
ly:Calibri,sans-serif">1. Add support for ARM64 architectures to XenOprof=
=C2=A0 in its current implementation.</p><p class=3D"gmail-MsoPlainText" st=
yle=3D"margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-seri=
f"><br></p><p class=3D"gmail-MsoPlainText" style=3D"margin:0cm 0cm 0.0001pt=
;font-size:11pt;font-family:Calibri,sans-serif">2. I found an interesting l=
ibrary called libpfm4 which also work with perf_event, and support ARM64 an=
d ARM32 architectures. Well I can tray to use this library in order to prof=
ile DOM0 and DOMU-VP guest.=C2=A0 =C2=A0</p><p class=3D"gmail-MsoPlainText"=
 style=3D"margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-s=
erif"><br></p><p class=3D"gmail-MsoPlainText" style=3D"margin:0cm 0cm 0.000=
1pt;font-size:11pt;font-family:Calibri,sans-serif">Personally I prefer the =
option 2 since the=C2=A0 library currently works in normal linux OS and I g=
uest could be easy to replicate it on XEN.</p><p class=3D"gmail-MsoPlainTex=
t" style=3D"margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans=
-serif"><br></p><p class=3D"gmail-MsoPlainText" style=3D"margin:0cm 0cm 0.0=
001pt;font-size:11pt;font-family:Calibri,sans-serif"><br></p><p class=3D"gm=
ail-MsoPlainText" style=3D"margin:0cm 0cm 0.0001pt;font-size:11pt;font-fami=
ly:Calibri,sans-serif">Approaches:</p><p class=3D"gmail-MsoPlainText" style=
=3D"margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">=
</p><ul><li>(hypercalls) from DOM0-DOMU to xen=C2=A0</li><li>(direct pass t=
hrough from DOM0 to PMU counters), and VPMU in DOMU .</li></ul><p></p><p cl=
ass=3D"gmail-MsoPlainText" style=3D"margin:0cm 0cm 0.0001pt;font-size:11pt;=
font-family:Calibri,sans-serif">Here my questions?</p><p class=3D"gmail-Mso=
PlainText" style=3D"margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Cali=
bri,sans-serif"><br></p><p class=3D"gmail-MsoPlainText" style=3D"margin:0cm=
 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"></p><ul><li><b=
>I would like to know if currently DOM0 and DOMU have support to=C2=A0 perf=
_event i.e., they can read directly performance monitoring unit (PMU) count=
ers, only DOM0 or none of them?</b></li><li><b style=3D"font-size:11pt">sho=
uld I implement some traps in XEN hypervisor ?</b></li><li><b style=3D"font=
-size:11pt">some one=C2=A0 currently=C2=A0

<b>is</b>=C2=A0 working on this?</b></li><li><b style=3D"font-size:11pt">Wh=
ich is the most </b><span style=3D"font-size:14.6667px"><b>efficient</b></s=
pan><b style=3D"font-size:11pt">=C2=A0way to implement it ?</b></li><li><b =
style=3D"font-size:11pt">There is a guide line to do this easily?</b></li><=
/ul><div><span style=3D"font-size:14.6667px">chears</span></div>-- <br><div=
 dir=3D"ltr" class=3D"gmail_signature">Diego Alejandro Parra Guzm=C3=A1n<br=
>Estudiante de ingenier=C3=ADa electr=C3=B3nica<br>Universidad distrital FJ=
C<br></div></div></div>

--00000000000040d1fc05849c9ef4--


--===============4913164003534191708==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWFwaSBt
YWlsaW5nIGxpc3QKWGVuLWFwaUBsaXN0cy54ZW5wcm9qZWN0Lm9yZwpodHRwczovL2xpc3RzLnhl
bnByb2plY3Qub3JnL21haWxtYW4vbGlzdGluZm8veGVuLWFwaQo=

--===============4913164003534191708==--


