RE: Get local CPU id

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux