Re: getting the cpuid for a userspace process ?

看板FB_current作者時間14年前 (2011/10/26 02:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/7 (看更多)
In message <201110251342.45194.jhb@freebsd.org>, John Baldwin writes: >On Tuesday, October 25, 2011 11:06:22 am Luigi Rizzo wrote: >> as the subject says... is there any way to get the current >> CPU id for a userspace process (of course, >> valid only at the time the function is called as the >> process might be arbitrarily moved while it runs) > >Not from userland, no. On x86 you can use cpuid to fetch the APIC ID, but >that does not map 1:1 to FreeBSD cpu IDs. How does JEmalloc do it ? -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1Efm2ZfN (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1Efm2ZfN (FB_current)