* [PATCH 2.6.27-rc3 26/29] mdb: export task_curr
@ 2008-08-14 6:14 jmerkey
2008-08-14 8:39 ` Pekka Enberg
0 siblings, 1 reply; 11+ messages in thread
From: jmerkey @ 2008-08-14 6:14 UTC (permalink / raw)
To: linux-kernel
export the task_curr function to the module based kernel debugger to enable
process back tracing and state display.
Signed-off-by: Jeffrey Vernon Merkey (jmerkey@wolfmountaingroup.com)
--- a/kernel/sched.c 2008-08-13 14:22:32.000000000 -0600
+++ b/kernel/sched.c 2008-08-13 11:56:03.000000000 -0600
@@ -1736,6 +1736,9 @@
{
return cpu_curr(task_cpu(p)) == p;
}
+#if defined(CONFIG_MDB_MODULE)
+EXPORT_SYMBOL_GPL(task_curr);
+#endif
static inline void __set_task_cpu(struct task_struct *p, unsigned int cpu)
{
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 2.6.27-rc3 26/29] mdb: export task_curr
2008-08-14 6:14 [PATCH 2.6.27-rc3 26/29] mdb: export task_curr jmerkey
@ 2008-08-14 8:39 ` Pekka Enberg
2008-08-14 14:35 ` jmerkey
0 siblings, 1 reply; 11+ messages in thread
From: Pekka Enberg @ 2008-08-14 8:39 UTC (permalink / raw)
To: jmerkey; +Cc: linux-kernel, Ingo Molnar
On Thu, Aug 14, 2008 at 9:14 AM, <jmerkey@wolfmountaingroup.com> wrote:
> export the task_curr function to the module based kernel debugger to enable
> process back tracing and state display.
>
> Signed-off-by: Jeffrey Vernon Merkey (jmerkey@wolfmountaingroup.com)
>
> --- a/kernel/sched.c 2008-08-13 14:22:32.000000000 -0600
> +++ b/kernel/sched.c 2008-08-13 11:56:03.000000000 -0600
> @@ -1736,6 +1736,9 @@
> {
> return cpu_curr(task_cpu(p)) == p;
> }
> +#if defined(CONFIG_MDB_MODULE)
> +EXPORT_SYMBOL_GPL(task_curr);
> +#endif
We usually don't export symbols conditionally, especially in core kernel code.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 2.6.27-rc3 26/29] mdb: export task_curr
2008-08-14 8:39 ` Pekka Enberg
@ 2008-08-14 14:35 ` jmerkey
2008-08-14 15:05 ` Johannes Weiner
2008-08-15 12:25 ` Ingo Molnar
0 siblings, 2 replies; 11+ messages in thread
From: jmerkey @ 2008-08-14 14:35 UTC (permalink / raw)
To: Pekka Enberg; +Cc: jmerkey, linux-kernel, Ingo Molnar
> On Thu, Aug 14, 2008 at 9:14 AM, <jmerkey@wolfmountaingroup.com> wrote:
>> export the task_curr function to the module based kernel debugger to
>> enable
>> process back tracing and state display.
>>
>> Signed-off-by: Jeffrey Vernon Merkey (jmerkey@wolfmountaingroup.com)
>>
>> --- a/kernel/sched.c 2008-08-13 14:22:32.000000000 -0600
>> +++ b/kernel/sched.c 2008-08-13 11:56:03.000000000 -0600
>> @@ -1736,6 +1736,9 @@
>> {
>> return cpu_curr(task_cpu(p)) == p;
>> }
>> +#if defined(CONFIG_MDB_MODULE)
>> +EXPORT_SYMBOL_GPL(task_curr);
>> +#endif
>
> We usually don't export symbols conditionally, especially in core kernel
> code.
>
Well,then please suggest how a kernel debugger can be module based and still
be able to get this information some other way that's generic and minimal
impact.
Jeff
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 2.6.27-rc3 26/29] mdb: export task_curr
2008-08-14 15:05 ` Johannes Weiner
@ 2008-08-14 14:49 ` jmerkey
0 siblings, 0 replies; 11+ messages in thread
From: jmerkey @ 2008-08-14 14:49 UTC (permalink / raw)
To: Johannes Weiner; +Cc: jmerkey, Pekka Enberg, linux-kernel, Ingo Molnar
> jmerkey@wolfmountaingroup.com writes:
>
>>> On Thu, Aug 14, 2008 at 9:14 AM, <jmerkey@wolfmountaingroup.com>
>>> wrote:
>>>> export the task_curr function to the module based kernel debugger to
>>>> enable
>>>> process back tracing and state display.
>>>>
>>>> Signed-off-by: Jeffrey Vernon Merkey (jmerkey@wolfmountaingroup.com)
>>>>
>>>> --- a/kernel/sched.c 2008-08-13 14:22:32.000000000 -0600
>>>> +++ b/kernel/sched.c 2008-08-13 11:56:03.000000000 -0600
>>>> @@ -1736,6 +1736,9 @@
>>>> {
>>>> return cpu_curr(task_cpu(p)) == p;
>>>> }
>>>> +#if defined(CONFIG_MDB_MODULE)
>>>> +EXPORT_SYMBOL_GPL(task_curr);
>>>> +#endif
>>>
>>> We usually don't export symbols conditionally, especially in core
>>> kernel
>>> code.
>>>
>>
>> Well,then please suggest how a kernel debugger can be module based and
>> still
>> be able to get this information some other way that's generic and
>> minimal
>> impact.
>
> EXPORT_SYMBOL_GPL(task_curr);
>
> Without the #if's. Just export it.
>
> Hannes
>
OK. That's simple and minimal.
Jeff
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 2.6.27-rc3 26/29] mdb: export task_curr
2008-08-14 14:35 ` jmerkey
@ 2008-08-14 15:05 ` Johannes Weiner
2008-08-14 14:49 ` jmerkey
2008-08-15 12:25 ` Ingo Molnar
1 sibling, 1 reply; 11+ messages in thread
From: Johannes Weiner @ 2008-08-14 15:05 UTC (permalink / raw)
To: jmerkey; +Cc: Pekka Enberg, linux-kernel, Ingo Molnar
jmerkey@wolfmountaingroup.com writes:
>> On Thu, Aug 14, 2008 at 9:14 AM, <jmerkey@wolfmountaingroup.com> wrote:
>>> export the task_curr function to the module based kernel debugger to
>>> enable
>>> process back tracing and state display.
>>>
>>> Signed-off-by: Jeffrey Vernon Merkey (jmerkey@wolfmountaingroup.com)
>>>
>>> --- a/kernel/sched.c 2008-08-13 14:22:32.000000000 -0600
>>> +++ b/kernel/sched.c 2008-08-13 11:56:03.000000000 -0600
>>> @@ -1736,6 +1736,9 @@
>>> {
>>> return cpu_curr(task_cpu(p)) == p;
>>> }
>>> +#if defined(CONFIG_MDB_MODULE)
>>> +EXPORT_SYMBOL_GPL(task_curr);
>>> +#endif
>>
>> We usually don't export symbols conditionally, especially in core kernel
>> code.
>>
>
> Well,then please suggest how a kernel debugger can be module based and still
> be able to get this information some other way that's generic and minimal
> impact.
EXPORT_SYMBOL_GPL(task_curr);
Without the #if's. Just export it.
Hannes
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 2.6.27-rc3 26/29] mdb: export task_curr
2008-08-14 14:35 ` jmerkey
2008-08-14 15:05 ` Johannes Weiner
@ 2008-08-15 12:25 ` Ingo Molnar
2008-08-15 15:58 ` jmerkey
2008-08-15 16:13 ` jmerkey
1 sibling, 2 replies; 11+ messages in thread
From: Ingo Molnar @ 2008-08-15 12:25 UTC (permalink / raw)
To: jmerkey; +Cc: Pekka Enberg, linux-kernel, jason.wessel
* jmerkey@wolfmountaingroup.com <jmerkey@wolfmountaingroup.com> wrote:
> > On Thu, Aug 14, 2008 at 9:14 AM, <jmerkey@wolfmountaingroup.com> wrote:
> >> export the task_curr function to the module based kernel debugger to
> >> enable
> >> process back tracing and state display.
> >>
> >> Signed-off-by: Jeffrey Vernon Merkey (jmerkey@wolfmountaingroup.com)
> >>
> >> --- a/kernel/sched.c 2008-08-13 14:22:32.000000000 -0600
> >> +++ b/kernel/sched.c 2008-08-13 11:56:03.000000000 -0600
> >> @@ -1736,6 +1736,9 @@
> >> {
> >> return cpu_curr(task_cpu(p)) == p;
> >> }
> >> +#if defined(CONFIG_MDB_MODULE)
> >> +EXPORT_SYMBOL_GPL(task_curr);
> >> +#endif
> >
> > We usually don't export symbols conditionally, especially in core kernel
> > code.
> >
>
> Well,then please suggest how a kernel debugger can be module based and
> still be able to get this information some other way that's generic
> and minimal impact.
FYI, there's a built-in kernel debugger in the upstream kernel already:
kernel/kgdb.c - and it does not need that export.
So if you are interested in kernel debuggers i'd suggest to work with
the KGDB folks to extend it with whatever feature-set is missing.
They are friendly, very easy to work with and are open to the
thousands-of-years-old scientific method of not duplicating effort,
working together, going forward gradually, etc.
Ingo
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 2.6.27-rc3 26/29] mdb: export task_curr
2008-08-15 12:25 ` Ingo Molnar
@ 2008-08-15 15:58 ` jmerkey
2008-08-15 16:39 ` Ingo Molnar
2008-08-15 16:13 ` jmerkey
1 sibling, 1 reply; 11+ messages in thread
From: jmerkey @ 2008-08-15 15:58 UTC (permalink / raw)
To: Ingo Molnar; +Cc: jmerkey, Pekka Enberg, linux-kernel, jason.wessel
>
> * jmerkey@wolfmountaingroup.com <jmerkey@wolfmountaingroup.com> wrote:
>
>> > On Thu, Aug 14, 2008 at 9:14 AM, <jmerkey@wolfmountaingroup.com>
>> wrote:
>> >> export the task_curr function to the module based kernel debugger to
>> >> enable
>> >> process back tracing and state display.
>> >>
>> >> Signed-off-by: Jeffrey Vernon Merkey (jmerkey@wolfmountaingroup.com)
>> >>
>> >> --- a/kernel/sched.c 2008-08-13 14:22:32.000000000 -0600
>> >> +++ b/kernel/sched.c 2008-08-13 11:56:03.000000000 -0600
>> >> @@ -1736,6 +1736,9 @@
>> >> {
>> >> return cpu_curr(task_cpu(p)) == p;
>> >> }
>> >> +#if defined(CONFIG_MDB_MODULE)
>> >> +EXPORT_SYMBOL_GPL(task_curr);
>> >> +#endif
>> >
>> > We usually don't export symbols conditionally, especially in core
>> kernel
>> > code.
>> >
>>
>> Well,then please suggest how a kernel debugger can be module based and
>> still be able to get this information some other way that's generic
>> and minimal impact.
>
> FYI, there's a built-in kernel debugger in the upstream kernel already:
> kernel/kgdb.c - and it does not need that export.
>
> So if you are interested in kernel debuggers i'd suggest to work with
> the KGDB folks to extend it with whatever feature-set is missing.
>
> They are friendly, very easy to work with and are open to the
> thousands-of-years-old scientific method of not duplicating effort,
> working together, going forward gradually, etc.
>
> Ingo
>
Sorry, but I have my own path and direction, and its not as a tin can on a
strong tied to the tail of kdb or kgdb. Again, it matters not what's in
Linus' tree or not, but whether this is useful to others and they use it.
>From what I have seen based on the non-stop downloads from my FTP server,
its needed for certain classes of users -- me included. I will continue
to enhance it, release it, and move it forward.
kdb and kgdb can go their way. I'm certain my code is being reviewed as
we speak and if its useful to them, so much the better.
Jeff
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 2.6.27-rc3 26/29] mdb: export task_curr
2008-08-15 12:25 ` Ingo Molnar
2008-08-15 15:58 ` jmerkey
@ 2008-08-15 16:13 ` jmerkey
1 sibling, 0 replies; 11+ messages in thread
From: jmerkey @ 2008-08-15 16:13 UTC (permalink / raw)
To: Ingo Molnar; +Cc: jmerkey, Pekka Enberg, linux-kernel, jason.wessel
>
>> >> +EXPORT_SYMBOL_GPL(task_curr);
>> >> +#endif
>> >
>> > We usually don't export symbols conditionally, especially in core
>> kernel
>> > code.
>> >
>>
>
> FYI, there's a built-in kernel debugger in the upstream kernel already:
> kernel/kgdb.c - and it does not need that export.
I do not need this export either -- unless mdb runs as a kernel module -
which kdb and kgdb cannot do today ...
Jeff
>
> Ingo
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 2.6.27-rc3 26/29] mdb: export task_curr
2008-08-15 16:39 ` Ingo Molnar
@ 2008-08-15 16:26 ` jmerkey
2008-08-15 17:14 ` jmerkey
0 siblings, 1 reply; 11+ messages in thread
From: jmerkey @ 2008-08-15 16:26 UTC (permalink / raw)
To: Ingo Molnar; +Cc: jmerkey, Pekka Enberg, linux-kernel, jason.wessel
>
> * jmerkey@wolfmountaingroup.com <jmerkey@wolfmountaingroup.com> wrote:
>
>> >
>> > * jmerkey@wolfmountaingroup.com <jmerkey@wolfmountaingroup.com> wrote:
>> >
>> >> > On Thu, Aug 14, 2008 at 9:14 AM, <jmerkey@wolfmountaingroup.com>
>> >> wrote:
>> >> >> export the task_curr function to the module based kernel debugger
>> to
>> >> >> enable
>> >> >> process back tracing and state display.
>> >> >>
>> >> >> Signed-off-by: Jeffrey Vernon Merkey
>> (jmerkey@wolfmountaingroup.com)
>> >> >>
>> >> >> --- a/kernel/sched.c 2008-08-13 14:22:32.000000000 -0600
>> >> >> +++ b/kernel/sched.c 2008-08-13 11:56:03.000000000 -0600
>> >> >> @@ -1736,6 +1736,9 @@
>> >> >> {
>> >> >> return cpu_curr(task_cpu(p)) == p;
>> >> >> }
>> >> >> +#if defined(CONFIG_MDB_MODULE)
>> >> >> +EXPORT_SYMBOL_GPL(task_curr);
>> >> >> +#endif
>> >> >
>> >> > We usually don't export symbols conditionally, especially in core
>> >> kernel
>> >> > code.
>> >> >
>> >>
>> >> Well,then please suggest how a kernel debugger can be module based
>> and
>> >> still be able to get this information some other way that's generic
>> >> and minimal impact.
>> >
>> > FYI, there's a built-in kernel debugger in the upstream kernel
>> already:
>> > kernel/kgdb.c - and it does not need that export.
>> >
>> > So if you are interested in kernel debuggers i'd suggest to work with
>> > the KGDB folks to extend it with whatever feature-set is missing.
>> >
>> > They are friendly, very easy to work with and are open to the
>> > thousands-of-years-old scientific method of not duplicating effort,
>> > working together, going forward gradually, etc.
>> >
>> > Ingo
>> >
>>
>> Sorry, but I have my own path and direction, [...]
>
> doing things alone is your unalienable personal right, and since thus
> you apparently didnt intend your patch to be included in the Linux
> kernel that's as far as my interest in this as a maintainer goes.
>
> Thanks,
>
> Ingo
>
Ingo,
The patches are submitted so you can stop putting words in my mouth. If
it goes in, it goes in -- its submitted. Your comment about this export
and comparing it to kgdb demonstrates 1) you have never even looked at the
code of either debugger in this area 2) you were unaware I did not need
this exported except as a module 3) which kgdb and kdb do not support
either.
A maintainer would be expected to actually review the code. Its clear
from the comments above you have not, so I see little interest anyway from
you, so who cares.
Jeff
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 2.6.27-rc3 26/29] mdb: export task_curr
2008-08-15 15:58 ` jmerkey
@ 2008-08-15 16:39 ` Ingo Molnar
2008-08-15 16:26 ` jmerkey
0 siblings, 1 reply; 11+ messages in thread
From: Ingo Molnar @ 2008-08-15 16:39 UTC (permalink / raw)
To: jmerkey; +Cc: Pekka Enberg, linux-kernel, jason.wessel
* jmerkey@wolfmountaingroup.com <jmerkey@wolfmountaingroup.com> wrote:
> >
> > * jmerkey@wolfmountaingroup.com <jmerkey@wolfmountaingroup.com> wrote:
> >
> >> > On Thu, Aug 14, 2008 at 9:14 AM, <jmerkey@wolfmountaingroup.com>
> >> wrote:
> >> >> export the task_curr function to the module based kernel debugger to
> >> >> enable
> >> >> process back tracing and state display.
> >> >>
> >> >> Signed-off-by: Jeffrey Vernon Merkey (jmerkey@wolfmountaingroup.com)
> >> >>
> >> >> --- a/kernel/sched.c 2008-08-13 14:22:32.000000000 -0600
> >> >> +++ b/kernel/sched.c 2008-08-13 11:56:03.000000000 -0600
> >> >> @@ -1736,6 +1736,9 @@
> >> >> {
> >> >> return cpu_curr(task_cpu(p)) == p;
> >> >> }
> >> >> +#if defined(CONFIG_MDB_MODULE)
> >> >> +EXPORT_SYMBOL_GPL(task_curr);
> >> >> +#endif
> >> >
> >> > We usually don't export symbols conditionally, especially in core
> >> kernel
> >> > code.
> >> >
> >>
> >> Well,then please suggest how a kernel debugger can be module based and
> >> still be able to get this information some other way that's generic
> >> and minimal impact.
> >
> > FYI, there's a built-in kernel debugger in the upstream kernel already:
> > kernel/kgdb.c - and it does not need that export.
> >
> > So if you are interested in kernel debuggers i'd suggest to work with
> > the KGDB folks to extend it with whatever feature-set is missing.
> >
> > They are friendly, very easy to work with and are open to the
> > thousands-of-years-old scientific method of not duplicating effort,
> > working together, going forward gradually, etc.
> >
> > Ingo
> >
>
> Sorry, but I have my own path and direction, [...]
doing things alone is your unalienable personal right, and since thus
you apparently didnt intend your patch to be included in the Linux
kernel that's as far as my interest in this as a maintainer goes.
Thanks,
Ingo
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 2.6.27-rc3 26/29] mdb: export task_curr
2008-08-15 16:26 ` jmerkey
@ 2008-08-15 17:14 ` jmerkey
0 siblings, 0 replies; 11+ messages in thread
From: jmerkey @ 2008-08-15 17:14 UTC (permalink / raw)
To: jmerkey; +Cc: Ingo Molnar, jmerkey, Pekka Enberg, linux-kernel, jason.wessel
>>
>> * jmerkey@wolfmountaingroup.com <jmerkey@wolfmountaingroup.com> wrote:
>>
>>> >
>>> > * jmerkey@wolfmountaingroup.com <jmerkey@wolfmountaingroup.com>
>>> wrote:
>>> >
>>> >> > On Thu, Aug 14, 2008 at 9:14 AM, <jmerkey@wolfmountaingroup.com>
>>> >> wrote:
>>> >> >> export the task_curr function to the module based kernel debugger
>>> to
>>> >> >> enable
>>> >> >> process back tracing and state display.
>>> >> >>
>>> >> >> Signed-off-by: Jeffrey Vernon Merkey
>>> (jmerkey@wolfmountaingroup.com)
>>> >> >>
>>> >> >> --- a/kernel/sched.c 2008-08-13 14:22:32.000000000 -0600
>>> >> >> +++ b/kernel/sched.c 2008-08-13 11:56:03.000000000 -0600
>>> >> >> @@ -1736,6 +1736,9 @@
>>> >> >> {
>>> >> >> return cpu_curr(task_cpu(p)) == p;
>>> >> >> }
>>> >> >> +#if defined(CONFIG_MDB_MODULE)
>>> >> >> +EXPORT_SYMBOL_GPL(task_curr);
>>> >> >> +#endif
>>> >> >
>>> >> > We usually don't export symbols conditionally, especially in core
>>> >> kernel
>>> >> > code.
>>> >> >
>>> >>
>>> >> Well,then please suggest how a kernel debugger can be module based
>>> and
>>> >> still be able to get this information some other way that's generic
>>> >> and minimal impact.
>>> >
>>> > FYI, there's a built-in kernel debugger in the upstream kernel
>>> already:
>>> > kernel/kgdb.c - and it does not need that export.
>>> >
>>> > So if you are interested in kernel debuggers i'd suggest to work with
>>> > the KGDB folks to extend it with whatever feature-set is missing.
>>> >
>>> > They are friendly, very easy to work with and are open to the
>>> > thousands-of-years-old scientific method of not duplicating effort,
>>> > working together, going forward gradually, etc.
>>> >
>>> > Ingo
>>> >
>>>
>>> Sorry, but I have my own path and direction, [...]
>>
>> doing things alone is your unalienable personal right, and since thus
>> you apparently didnt intend your patch to be included in the Linux
>> kernel that's as far as my interest in this as a maintainer goes.
>>
>> Thanks,
>>
>> Ingo
>>
I removed the export from this file and will resubmit the patch series.
This will remove you from the decision list for this patch series. What
other files do you claim to maintain so I can make certain remove them
from my patches?
I can get the variable some other way.
:-)
Thanks
Jeff
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2008-08-15 17:37 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-14 6:14 [PATCH 2.6.27-rc3 26/29] mdb: export task_curr jmerkey
2008-08-14 8:39 ` Pekka Enberg
2008-08-14 14:35 ` jmerkey
2008-08-14 15:05 ` Johannes Weiner
2008-08-14 14:49 ` jmerkey
2008-08-15 12:25 ` Ingo Molnar
2008-08-15 15:58 ` jmerkey
2008-08-15 16:39 ` Ingo Molnar
2008-08-15 16:26 ` jmerkey
2008-08-15 17:14 ` jmerkey
2008-08-15 16:13 ` jmerkey
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.