From mboxrd@z Thu Jan 1 00:00:00 1970 From: Harald Servat Subject: Re: Sample memory references with at least a given latency? Date: Wed, 04 Feb 2015 14:34:55 +0100 Message-ID: <54D21FFF.7050504@bsc.es> References: <54D21524.8010305@bsc.es> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mao.bsc.es ([84.88.52.34]:34714 "EHLO opsmail01.bsc.es" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932209AbbBDNfJ (ORCPT ); Wed, 4 Feb 2015 08:35:09 -0500 In-Reply-To: Sender: linux-perf-users-owner@vger.kernel.org List-ID: To: Manuel Selva Cc: "linux-perf-users@vger.kernel.org" Hello Manuel, that's a very nice interesting piece of code! Thank you very much! Now two different questions arise: * still, is this possible through regular perf binary from the linux kernel? * with respect to your code, I observe that the data region for the PEBS collected samples is pointed by metadata_page. However, when printing its contents through print_samples the output does not print time-stamps. Are the time-stamps collected? If so, how can one access to that information? Thank you very much in advance!! On 04/02/15 14:06, Manuel Selva wrote: > Yes you can. I wrote a small "memory not" for how to do this while > trying to enable memory sampling: > > https://manuelselva.wordpress.com/2013/10/31/how-to-use-the-linux-perf_event_open-system-call/ > > I also wrote some code exampl here: > https://github.com/ManuelSelva/c4fun/tree/master/pebs_tests > > 2015-02-04 13:48 GMT+01:00 Harald Servat >: > > Hello list, > > is there any way to configure perf to sample memory references > through PEBS and enable the Load Latency Performance Monitoring > Facility (section 18.7.1.2 from the Intel 64 and IA-32 Architectures > Software Developer's Manual). > > Thank you very much in advance. > > WARNING / LEGAL TEXT: This message is intended only for the use of the > individual or entity to which it is addressed and may contain > information which is privileged, confidential, proprietary, or exempt > from disclosure under applicable law. If you are not the intended > recipient or the person responsible for delivering the message to the > intended recipient, you are strictly prohibited from disclosing, > distributing, copying, or in any way using this message. If you have > received this communication in error, please notify the sender and > destroy and delete any copies you may have received. > > http://www.bsc.es/disclaimer > -- > 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 > > > WARNING / LEGAL TEXT: This message is intended only for the use of the individual or entity to which it is addressed and may contain information which is privileged, confidential, proprietary, or exempt from disclosure under applicable law. If you are not the intended recipient or the person responsible for delivering the message to the intended recipient, you are strictly prohibited from disclosing, distributing, copying, or in any way using this message. If you have received this communication in error, please notify the sender and destroy and delete any copies you may have received. http://www.bsc.es/disclaimer