Get local CPU id
Jeff Haran
Jeff.Haran at citrix.com
Mon Mar 9 12:26:46 EDT 2015
-----Original Message-----
From: kernelnewbies-bounces at kernelnewbies.org [mailto:kernelnewbies-bounces at kernelnewbies.org] On Behalf Of Matwey V. Kornilov
Sent: Monday, March 09, 2015 8:35 AM
To: kernelnewbies at kernelnewbies.org
Subject: Re: Get local CPU id
Many thanks for all answers. smp_processor_id() works just fine in interrupt context.
Unfortunately /proc/interrupts is not what I was looking for. My idea was to print a line to dmesg at every interrupt to have a timestamp like the following:
[ 926.440799] Enter intr at 0
[ 926.441059] Exit intr at 0
Every interrupt? You might want to spend some time thinking about which interrupts you don't want to do the above printing for.
Jeff Haran
More information about the Kernelnewbies
mailing list