public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 01/21] perfmon2 minimal:  generic hooks
@ 2008-06-09 22:33 eranian
  2008-06-10 14:24 ` Arjan van de Ven
  0 siblings, 1 reply; 2+ messages in thread
From: eranian @ 2008-06-09 22:33 UTC (permalink / raw)
  To: linux-kernel

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.

Signed-off-by: Stephane Eranian <eranian@gmail.com>

--

Index: o/Makefile
===================================================================
--- o.orig/Makefile	2008-06-05 11:00:37.000000000 +0200
+++ o/Makefile	2008-06-05 11:00:43.000000000 +0200
@@ -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) \
Index: o/include/linux/sched.h
===================================================================
--- o.orig/include/linux/sched.h	2008-06-05 11:00:37.000000000 +0200
+++ o/include/linux/sched.h	2008-06-05 11:00:43.000000000 +0200
@@ -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
 };
 
 /*

-- 


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [patch 01/21] perfmon2 minimal:  generic hooks
  2008-06-09 22:33 [patch 01/21] perfmon2 minimal: generic hooks eranian
@ 2008-06-10 14:24 ` Arjan van de Ven
  0 siblings, 0 replies; 2+ messages in thread
From: Arjan van de Ven @ 2008-06-10 14:24 UTC (permalink / raw)
  To: eranian; +Cc: linux-kernel

On Mon, 09 Jun 2008 15:33:36 -0700 (PDT)
eranian@googlemail.com wrote:

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

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

-- 
If you want to reach me at my work email, use arjan@linux.intel.com
For development, discussion and tips for power savings, 
visit http://www.lesswatts.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-06-10 15:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-09 22:33 [patch 01/21] perfmon2 minimal: generic hooks eranian
2008-06-10 14:24 ` Arjan van de Ven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox