Description of problem: Recently Fenghua implemented getcpu system call for IPF that is a clean interface to get the CPU and node number a process is running on. There is /proc/<pid>/stat, but that is not a well documented API that can be used in production systems. Andi added a system call in x86-64 that does this The implementation includes both sys_getcpu and fsys_getcpu. sys_getcpu patch can be found at: [PATCH] Hook up getcpu system call for IA64 ht tp://www.gelato.unsw.edu.au/archives/linux-ia64/0702/19940.html fsys_getcpu patch can be found at: [PATCH] fsys_getcpu for IA64 ht tp://www.gelato.unsw.edu.au/archives/linux-ia64/0702/19994.html Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
*** This bug has been marked as a duplicate of 241592 ***