title: Running kernel function in other cpu core in ARM
body: <p>I am trying to print some function names and the <strong>CPU ID</strong> in which the function runs. Using <code>linux-4.1 kernel</code> and when I print the CPU ID its always zero. I am using a dual core board. I just want to show that some kernel function can run in other <code>CPU</code> also. Is there any way to switch the CPU and print the <code>cpu id</code> as 1.
  I am using <code>armv7</code> board. <strong>Example</strong>:</p>
  
  <pre><code> 0)   0.073 us    |        mutex_unlock();
   3)   0.124 us    |                iov_iter_fault_in_readable();
   1)   0.105 us    |        fget_light();
   3)               |                ext3_write_begin() {
   0)   0.071 us    |        put_pid();
   3)               |                  ext3_writepage_trans_blocks() {
   3)   0.043 us    |                    journal_blocks_per_page();
   1)               |        sock_poll() {
   0)   3.126 us    |      }
   1)               |          unix_poll() {
   3)   0.390 us    |                  }
   0)   6.007 us    |    }
   3)               |                  grab_cache_page_write_begin() {
   1)               |            __pollwait() {
   3)               |                    find_lock_page() {
   0)   0.077 us    |    fput();
   3)   0.074 us    |                      find_get_page();
   1)               |              add_wait_queue() {
   1)   0.081 us    |                _raw_spin_lock_irqsave();
  </code></pre>
  
  <p>As we can see in first column the number changes, how can I achieve that my modifying kernel source.</p>