Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935645AbcJZUyX (ORCPT ); Wed, 26 Oct 2016 16:54:23 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:42319 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933398AbcJZUyU (ORCPT ); Wed, 26 Oct 2016 16:54:20 -0400 Date: Wed, 26 Oct 2016 22:54:16 +0200 From: Pavel Machek To: acme@redhat.com, kernel list Cc: peterz@infradead.org, mingo@redhat.com, alexander.shishkin@linux.intel.com Subject: Getting interrupt every million cache misses Message-ID: <20161026204748.GA11177@amd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4SFOXa2GPu3tIq4H" Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 942 Lines: 36 --4SFOXa2GPu3tIq4H Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! I'd like to get an interrupt every million cache misses... to do a printk() or something like that. As far as I can tell, modern hardware should allow me to do that. AFAICT performance events subsystem can do something like that, but I can't figure out where the code is / what I should call. Can someone help? Thanks, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --4SFOXa2GPu3tIq4H Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlgRF/gACgkQMOfwapXb+vL/ZgCdHJj//fAVmf8qMNvHAbRwIs+U l2QAn3uzFYLnxnLRbezF/pAsV7zviymF =+47Z -----END PGP SIGNATURE----- --4SFOXa2GPu3tIq4H--