mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch 7/9] x86, pebs: export ds.c symbols
@ 2008-11-25  8:08 Markus Metzger
  2008-11-25  8:26 ` Christoph Hellwig
  0 siblings, 1 reply; 5+ messages in thread
From: Markus Metzger @ 2008-11-25  8:08 UTC (permalink / raw)
  To: hpa, linux-kernel, mingo, tglx
  Cc: markus.t.metzger, markus.t.metzger, roland, akpm, mtk.manpages,
	eranian, juan.villacis

Export symbols in ds.c.

The changes are required to allow perfmon2 to access DS.

Reported-by: Stephane Eranian <eranian@googlemail.com>
Signed-off-by: Markus Metzger <markus.t.metzger@intel.com>
---

Index: ftrace/arch/x86/kernel/ds.c
===================================================================
--- ftrace.orig/arch/x86/kernel/ds.c	2008-11-25 08:18:03.000000000 +0100
+++ ftrace/arch/x86/kernel/ds.c	2008-11-25 08:18:04.000000000 +0100
@@ -28,6 +28,7 @@
 #include <linux/sched.h>
 #include <linux/mm.h>
 #include <linux/kernel.h>
+#include <linux/module.h>
 
 
 /*
@@ -419,6 +420,7 @@
  out:
 	return ERR_PTR(error);
 }
+EXPORT_SYMBOL(ds_request_bts);
 
 struct pebs_tracer *ds_request_pebs(struct task_struct *task,
 				    void *base, size_t size,
@@ -449,6 +451,7 @@
  out:
 	return ERR_PTR(error);
 }
+EXPORT_SYMBOL(ds_request_pebs);
 
 static void ds_release(struct ds_tracer *tracer, enum ds_qualifier qual)
 {
@@ -469,6 +472,7 @@
 
 	return 0;
 }
+EXPORT_SYMBOL(ds_release_bts);
 
 int ds_release_pebs(struct pebs_tracer *tracer)
 {
@@ -480,6 +484,7 @@
 
 	return 0;
 }
+EXPORT_SYMBOL(ds_release_pebs);
 
 static size_t ds_get_index(struct ds_context *context, enum ds_qualifier qual)
 {
@@ -503,6 +508,7 @@
 
 	return 0;
 }
+EXPORT_SYMBOL(ds_get_bts_index);
 
 int ds_get_pebs_index(struct pebs_tracer *tracer, size_t *pos)
 {
@@ -516,6 +522,7 @@
 
 	return 0;
 }
+EXPORT_SYMBOL(ds_get_pebs_index);
 
 static size_t ds_get_end(struct ds_context *context, enum ds_qualifier qual)
 {
@@ -539,6 +546,7 @@
 
 	return 0;
 }
+EXPORT_SYMBOL(ds_get_bts_end);
 
 int ds_get_pebs_end(struct pebs_tracer *tracer, size_t *pos)
 {
@@ -552,6 +560,7 @@
 
 	return 0;
 }
+EXPORT_SYMBOL(ds_get_pebs_end);
 
 static int ds_access(struct ds_context *context, enum ds_qualifier qual,
 		     size_t index, const void **record)
@@ -580,6 +589,7 @@
 
 	return ds_access(tracer->ds.context, ds_bts, index, record);
 }
+EXPORT_SYMBOL(ds_access_bts);
 
 int ds_access_pebs(struct pebs_tracer *tracer, size_t index,
 		   const void **record)
@@ -589,6 +599,7 @@
 
 	return ds_access(tracer->ds.context, ds_pebs, index, record);
 }
+EXPORT_SYMBOL(ds_access_pebs);
 
 static int ds_write(struct ds_context *context, enum ds_qualifier qual,
 		    const void *record, size_t size)
@@ -660,6 +671,7 @@
 
 	return ds_write(tracer->ds.context, ds_bts, record, size);
 }
+EXPORT_SYMBOL(ds_write_bts);
 
 int ds_write_pebs(struct pebs_tracer *tracer, const void *record, size_t size)
 {
@@ -668,6 +680,7 @@
 
 	return ds_write(tracer->ds.context, ds_pebs, record, size);
 }
+EXPORT_SYMBOL(ds_write_pebs);
 
 static void ds_reset_or_clear(struct ds_context *context,
 			      enum ds_qualifier qual, int clear)
@@ -692,6 +705,7 @@
 
 	return 0;
 }
+EXPORT_SYMBOL(ds_reset_bts);
 
 int ds_reset_pebs(struct pebs_tracer *tracer)
 {
@@ -702,6 +716,7 @@
 
 	return 0;
 }
+EXPORT_SYMBOL(ds_reset_pebs);
 
 int ds_clear_bts(struct bts_tracer *tracer)
 {
@@ -712,6 +727,7 @@
 
 	return 0;
 }
+EXPORT_SYMBOL(ds_clear_bts);
 
 int ds_clear_pebs(struct pebs_tracer *tracer)
 {
@@ -722,6 +738,7 @@
 
 	return 0;
 }
+EXPORT_SYMBOL(ds_clear_pebs);
 
 int ds_get_pebs_reset(struct pebs_tracer *tracer, u64 *value)
 {
@@ -735,6 +752,7 @@
 
 	return 0;
 }
+EXPORT_SYMBOL(ds_get_pebs_reset);
 
 int ds_set_pebs_reset(struct pebs_tracer *tracer, u64 value)
 {
@@ -745,6 +763,7 @@
 
 	return 0;
 }
+EXPORT_SYMBOL(ds_set_pebs_reset);
 
 static const struct ds_configuration ds_cfg_var = {
 	.sizeof_ds    = sizeof(long) * 12,
---------------------------------------------------------------------
Intel GmbH
Dornacher Strasse 1
85622 Feldkirchen/Muenchen Germany
Sitz der Gesellschaft: Feldkirchen bei Muenchen
Geschaeftsfuehrer: Douglas Lusk, Peter Gleissner, Hannes Schwaderer
Registergericht: Muenchen HRB 47456 Ust.-IdNr.
VAT Registration No.: DE129385895
Citibank Frankfurt (BLZ 502 109 00) 600119052

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.


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

* Re: [patch 7/9] x86, pebs: export ds.c symbols
  2008-11-25  8:08 [patch 7/9] x86, pebs: export ds.c symbols Markus Metzger
@ 2008-11-25  8:26 ` Christoph Hellwig
  2008-11-25  9:12   ` Ingo Molnar
  0 siblings, 1 reply; 5+ messages in thread
From: Christoph Hellwig @ 2008-11-25  8:26 UTC (permalink / raw)
  To: Markus Metzger
  Cc: hpa, linux-kernel, mingo, tglx, markus.t.metzger, roland, akpm,
	mtk.manpages, eranian, juan.villacis

On Tue, Nov 25, 2008 at 09:08:47AM +0100, Markus Metzger wrote:
> Export symbols in ds.c.
> 
> The changes are required to allow perfmon2 to access DS.

So put them into the perform2 patchset.


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

* Re: [patch 7/9] x86, pebs: export ds.c symbols
  2008-11-25  8:26 ` Christoph Hellwig
@ 2008-11-25  9:12   ` Ingo Molnar
  2008-11-25 10:24     ` Metzger, Markus T
  0 siblings, 1 reply; 5+ messages in thread
From: Ingo Molnar @ 2008-11-25  9:12 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: Markus Metzger, hpa, linux-kernel, tglx, markus.t.metzger,
	roland, akpm, mtk.manpages, eranian, juan.villacis


* Christoph Hellwig <hch@infradead.org> wrote:

> On Tue, Nov 25, 2008 at 09:08:47AM +0100, Markus Metzger wrote:
> > Export symbols in ds.c.
> > 
> > The changes are required to allow perfmon2 to access DS.
> 
> So put them into the perform2 patchset.

yes - and they need to be EXPORT_SYMBOL_GPL() as well.

	Ingo


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

* RE: [patch 7/9] x86, pebs: export ds.c symbols
  2008-11-25  9:12   ` Ingo Molnar
@ 2008-11-25 10:24     ` Metzger, Markus T
  2008-11-25 12:41       ` stephane eranian
  0 siblings, 1 reply; 5+ messages in thread
From: Metzger, Markus T @ 2008-11-25 10:24 UTC (permalink / raw)
  To: Ingo Molnar, Christoph Hellwig
  Cc: hpa, linux-kernel, tglx, markus.t.metzger, roland, akpm,
	mtk.manpages, eranian, Villacis, Juan

>-----Original Message-----
>From: Ingo Molnar [mailto:mingo@elte.hu] 
>Sent: Dienstag, 25. November 2008 10:12
>To: Christoph Hellwig
>Cc: Metzger, Markus T; hpa@zytor.com; 

>* Christoph Hellwig <hch@infradead.org> wrote:
>
>> On Tue, Nov 25, 2008 at 09:08:47AM +0100, Markus Metzger wrote:
>> > Export symbols in ds.c.
>> > 
>> > The changes are required to allow perfmon2 to access DS.
>> 
>> So put them into the perform2 patchset.
>
>yes - and they need to be EXPORT_SYMBOL_GPL() as well.

OK.

I will send a patch to Stephane, then, so he can include it into the perfmon2 series.


regards,
markus.
---------------------------------------------------------------------
Intel GmbH
Dornacher Strasse 1
85622 Feldkirchen/Muenchen Germany
Sitz der Gesellschaft: Feldkirchen bei Muenchen
Geschaeftsfuehrer: Douglas Lusk, Peter Gleissner, Hannes Schwaderer
Registergericht: Muenchen HRB 47456 Ust.-IdNr.
VAT Registration No.: DE129385895
Citibank Frankfurt (BLZ 502 109 00) 600119052

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.


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

* Re: [patch 7/9] x86, pebs: export ds.c symbols
  2008-11-25 10:24     ` Metzger, Markus T
@ 2008-11-25 12:41       ` stephane eranian
  0 siblings, 0 replies; 5+ messages in thread
From: stephane eranian @ 2008-11-25 12:41 UTC (permalink / raw)
  To: Metzger, Markus T
  Cc: Ingo Molnar, Christoph Hellwig, hpa, linux-kernel, tglx,
	markus.t.metzger, roland, akpm, mtk.manpages, Villacis, Juan

Markus,

On Tue, Nov 25, 2008 at 11:24 AM, Metzger, Markus T
<markus.t.metzger@intel.com> wrote:
>>-----Original Message-----
>>From: Ingo Molnar [mailto:mingo@elte.hu]
>>Sent: Dienstag, 25. November 2008 10:12
>>To: Christoph Hellwig
>>Cc: Metzger, Markus T; hpa@zytor.com;
>
>>* Christoph Hellwig <hch@infradead.org> wrote:
>>
>>> On Tue, Nov 25, 2008 at 09:08:47AM +0100, Markus Metzger wrote:
>>> > Export symbols in ds.c.
>>> >
>>> > The changes are required to allow perfmon2 to access DS.
>>>
>>> So put them into the perform2 patchset.
>>
>>yes - and they need to be EXPORT_SYMBOL_GPL() as well.
>
> OK.
>
> I will send a patch to Stephane, then, so he can include it into the perfmon2 series.
>
I will add your patch to my tree.
Thanks.

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

end of thread, other threads:[~2008-11-25 12:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-25  8:08 [patch 7/9] x86, pebs: export ds.c symbols Markus Metzger
2008-11-25  8:26 ` Christoph Hellwig
2008-11-25  9:12   ` Ingo Molnar
2008-11-25 10:24     ` Metzger, Markus T
2008-11-25 12:41       ` stephane eranian

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

all inboxes | Powered by JetHome®