-----Original Message-----
From: kernelnewbies-boun...@kernelnewbies.org 
[mailto:kernelnewbies-boun...@kernelnewbies.org] On Behalf Of Matwey V. Kornilov
Sent: Monday, March 09, 2015 8:35 AM
To: kernelnewbies@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


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to