Add a per-cpu pointer to profiling code.
authorRonald G. Minnich <rminnich@google.com>
Wed, 7 May 2014 01:31:42 +0000 (18:31 -0700)
committerRonald G. Minnich <rminnich@google.com>
Wed, 7 May 2014 01:31:42 +0000 (18:31 -0700)
Not intended to be used outside the profiling code.

Signed-off-by: Ronald G. Minnich <rminnich@google.com>
kern/include/smp.h

index a097a00..7f2b9ab 100644 (file)
@@ -73,6 +73,8 @@ struct per_cpu_info {
        struct kernel_msg_list NTPTV(a0t) NTPTV(a1t) NTPTV(a2t) immed_amsgs;
        spinlock_t routine_amsg_lock;
        struct kernel_msg_list NTPTV(a0t) NTPTV(a1t) NTPTV(a2t) routine_amsgs;
+       /* profiling -- opaque to all but the profiling code. */
+       void *profiling;
 }__attribute__((aligned(ARCH_CL_SIZE)));
 
 /* Allows the kernel to figure out what process is running on this core.  Can be