Skip to contentSkip to conversation

perfmon2 minimal: generic hooks

PATCH In review [email protected] 2 participants 2 messages Jun 9, 2008 – Jun 10, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/21 perfmon2 minimal: generic hooks

This simple patch adds the perfmon subdirectory to the top-level Makefile.

It also adds the perfmon2 context pointer to the task struct. The field points to the perfmon context structure only when a thread is monitored.

--

Makefile +1 -1
Index: o/Makefile
===================================================================
@@ -607,7 +607,7 @@
 
 
 ifeq ($(KBUILD_EXTMOD),)
-core-y		+= kernel/ mm/ fs/ ipc/ security/ crypto/ block/
+core-y		+= kernel/ mm/ fs/ ipc/ security/ crypto/ block/ perfmon/
 
 vmlinux-dirs	:= $(patsubst %/,%,$(filter %/, $(init-y) $(init-m) \
 		     $(core-y) $(core-m) $(drivers-y) $(drivers-m) \
include/linux/sched.h +4 -0
Index: o/include/linux/sched.h
===================================================================
@@ -95,6 +95,7 @@
 struct futex_pi_state;
 struct robust_list_head;
 struct bio;
+struct pfm_context;
 
 /*
  * List of flags we want to share for kernel threads,
@@ -1303,6 +1304,9 @@
 	int latency_record_count;
 	struct latency_record latency_record[LT_SAVECOUNT];
 #endif
+#ifdef CONFIG_PERFMON
+	struct pfm_context *pfm_context;
+#endif
 };
 
 /*
#1 lore raw
Quoted 2 lines · On Mon, 09 Jun 2008 15:33:36 -0700 (PDT) [email protected] wrote:

This simple patch adds the perfmon subdirectory to the top-level Makefile.

doesn't doing this first make this patch series unbisectable?

Signature · 3 lines
If you want to reach me at my work email, use [email protected]
For development, discussion and tips for power savings, 
visit http://www.lesswatts.org