From mboxrd@z Thu Jan 1 00:00:00 1970 From: Baptiste Lepers Subject: Re: Event not supported Date: Wed, 19 Feb 2014 15:08:19 +0100 (CET) Message-ID: <2134935460.926412.1392818899430.JavaMail.zimbra@inria.fr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:57621 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752480AbaBSOIW convert rfc822-to-8bit (ORCPT ); Wed, 19 Feb 2014 09:08:22 -0500 In-Reply-To: Sender: linux-perf-users-owner@vger.kernel.org List-ID: To: Martin Ichilevici de Oliveira Cc: linux-perf-users@vger.kernel.org Hi, I think that the format you are using is not correct. To profile event 0xXXX with unit mask YY, the format is rX0000YYXX, so = in your case: r1000002e0. Also, beware that the unitmask in the documentation tells you the _bit(= s)_ that need to be set. So : From Local Node to Node 0 =3D r1000001e0 From Local Node to Node 1 =3D r1000002e0 From Local Node to Node 2 =3D r1000004e0 From Local Node to Node 3 =3D r1000008e0 From Local Node to Node 4 =3D r1000010e0 From Local Node to Node 0 & 1 & 2 =3D r1000007e0 etc. Cheers, Baptiste. ----- Mail original ----- > De: "Martin Ichilevici de Oliveira" > =C0: linux-perf-users@vger.kernel.org > Envoy=E9: Mardi 18 F=E9vrier 2014 17:51:46 > Objet: Event not supported >=20 > Hello, >=20 > I'm still learning perf, so I apologize in advance if my questions ar= e > too simple and not suited here. I did, however, searched the web and > tried to find a solution by myself before posting to this mailing > list. >=20 > From my manufacturer's manual, I chose an event I'm interested in > monitoring. They also list unit masks, as below: >=20 > UnitMask Description > 7 From Local node to Node 7 > 6 From Local node to Node 6 > 5 From Local node to Node 5 > 4 From Local node to Node 4 > 3 From Local node to Node 3 > 2 From Local node to Node 2 > 1 From Local node to Node 1 > 0 From Local node to Node 0 >=20 > The event is "CPU to DRAM Requests to Target Node" (NUMA machine) and > it's number is 0x1E0. As I understood, I should precede the event wit= h > the unit mask. So, for example, if I'm interested in unit mask 2, I > should type: >=20 > perf stat -e r21e0 /bin/ls >=20 > However, this results in a message. This happened for > all events that have a unit mask that I tried. Other events worked > fine. >=20 > I'm not sure whether I'm giving the right command or this is a proble= m > with perf/kernel version. As it turned out, I'm running Ubuntu with > kernel 3.11.10-03111002, but the latest available perf version from > the repositories is 3.8.0-35, which is the one I'm using. >=20 > Any help is appreciated. >=20 > Thank you, > Martin > -- > To unsubscribe from this list: send the line "unsubscribe linux-perf-= users" > in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >