* [PATCH] sh: remove stray markers
@ 2009-05-06 10:38 Christoph Hellwig
2009-05-06 11:07 ` Ingo Molnar
0 siblings, 1 reply; 6+ messages in thread
From: Christoph Hellwig @ 2009-05-06 10:38 UTC (permalink / raw)
To: rostedt, mingo, lethal; +Cc: linux-kernel
arch/sh has a couple of stray markers without any users introduced
in commit 3d58695edbfac785161bf282dc11fd42a483d6c9. Remove them in
preparation of removing the markers in favour of the TRACE_EVENT
macro (and also because we don't keep dead code around).
Paul, are you okay putting this in via the tracing tree? I'd like
to have all marker removals queued up there so we can kill it in one
go once 2.6.31 opens.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Index: linux-2.6-tip/arch/sh/kernel/process_32.c
===================================================================
--- linux-2.6-tip.orig/arch/sh/kernel/process_32.c 2009-05-06 10:35:22.000000000 +0000
+++ linux-2.6-tip/arch/sh/kernel/process_32.c 2009-05-06 10:35:25.000000000 +0000
@@ -119,8 +119,6 @@
pid = do_fork(flags | CLONE_VM | CLONE_UNTRACED, 0,
®s, 0, NULL, NULL);
- trace_mark(kernel_arch_kthread_create, "pid %d fn %p", pid, fn);
-
return pid;
}
Index: linux-2.6-tip/arch/sh/kernel/process_64.c
===================================================================
--- linux-2.6-tip.orig/arch/sh/kernel/process_64.c 2009-05-06 10:35:22.000000000 +0000
+++ linux-2.6-tip/arch/sh/kernel/process_64.c 2009-05-06 10:35:36.000000000 +0000
@@ -323,7 +323,6 @@
int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags)
{
struct pt_regs regs;
- int pid;
memset(®s, 0, sizeof(regs));
regs.regs[2] = (unsigned long)arg;
@@ -333,12 +332,8 @@
regs.sr = (1 << 30);
/* Ok, create the new process.. */
- pid = do_fork(flags | CLONE_VM | CLONE_UNTRACED, 0,
+ return do_fork(flags | CLONE_VM | CLONE_UNTRACED, 0,
®s, 0, NULL, NULL);
-
- trace_mark(kernel_arch_kthread_create, "pid %d fn %p", pid, fn);
-
- return pid;
}
/*
Index: linux-2.6-tip/arch/sh/kernel/sys_sh.c
===================================================================
--- linux-2.6-tip.orig/arch/sh/kernel/sys_sh.c 2009-05-06 10:35:22.000000000 +0000
+++ linux-2.6-tip/arch/sh/kernel/sys_sh.c 2009-05-06 10:35:41.000000000 +0000
@@ -79,8 +79,6 @@
version = call >> 16; /* hack for backward compatibility */
call &= 0xffff;
- trace_mark(kernel_arch_ipc_call, "call %u first %d", call, first);
-
if (call <= SEMTIMEDOP)
switch (call) {
case SEMOP:
Index: linux-2.6-tip/arch/sh/mm/fault_32.c
===================================================================
--- linux-2.6-tip.orig/arch/sh/mm/fault_32.c 2009-05-06 10:35:22.000000000 +0000
+++ linux-2.6-tip/arch/sh/mm/fault_32.c 2009-05-06 10:35:59.000000000 +0000
@@ -249,9 +249,6 @@
{
int ret = 0;
- trace_mark(kernel_arch_trap_entry, "trap_id %d ip #p%ld",
- trap >> 5, instruction_pointer(regs));
-
#ifdef CONFIG_KPROBES
if (!user_mode(regs)) {
preempt_disable();
@@ -327,6 +324,5 @@
ret = 0;
out:
- trace_mark(kernel_arch_trap_exit, MARK_NOARGS);
return ret;
}
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] sh: remove stray markers
2009-05-06 10:38 [PATCH] sh: remove stray markers Christoph Hellwig
@ 2009-05-06 11:07 ` Ingo Molnar
2009-05-06 11:12 ` Christoph Hellwig
0 siblings, 1 reply; 6+ messages in thread
From: Ingo Molnar @ 2009-05-06 11:07 UTC (permalink / raw)
To: Christoph Hellwig
Cc: rostedt, lethal, linux-kernel, Frédéric Weisbecker
* Christoph Hellwig <hch@lst.de> wrote:
> arch/sh has a couple of stray markers without any users introduced
> in commit 3d58695edbfac785161bf282dc11fd42a483d6c9. Remove them
> in preparation of removing the markers in favour of the
> TRACE_EVENT macro (and also because we don't keep dead code
> around).
>
> Paul, are you okay putting this in via the tracing tree? I'd like
> to have all marker removals queued up there so we can kill it in
> one go once 2.6.31 opens.
It's fine with me to have this included in the SH tree as well. The
process.c files tend to be frequently modified in architectures so
having overlap between tip/tracing and the SH tree could become
awkward to Paul.
Also, if there's some current use of these markers then it's OK to
not do this change right now but replace them with tracepoints in
the v2.6.31 merge window, after both the SH and the tracing
infrastructure changes are upstream.
Ingo
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] sh: remove stray markers
2009-05-06 11:07 ` Ingo Molnar
@ 2009-05-06 11:12 ` Christoph Hellwig
2009-05-06 11:15 ` Ingo Molnar
0 siblings, 1 reply; 6+ messages in thread
From: Christoph Hellwig @ 2009-05-06 11:12 UTC (permalink / raw)
To: Ingo Molnar
Cc: Christoph Hellwig, rostedt, lethal, linux-kernel,
Fr?d?ric Weisbecker
On Wed, May 06, 2009 at 01:07:35PM +0200, Ingo Molnar wrote:
> Also, if there's some current use of these markers then it's OK to
> not do this change right now but replace them with tracepoints in
> the v2.6.31 merge window, after both the SH and the tracing
> infrastructure changes are upstream.
There's not user of these. The two only uses sets of markers are
sputrace, and kvmtrace. I've sent a patch for the first, and the
latter is work in progress.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] sh: remove stray markers
2009-05-06 11:12 ` Christoph Hellwig
@ 2009-05-06 11:15 ` Ingo Molnar
2009-05-07 2:04 ` Paul Mundt
0 siblings, 1 reply; 6+ messages in thread
From: Ingo Molnar @ 2009-05-06 11:15 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: rostedt, lethal, linux-kernel, Fr?d?ric Weisbecker
* Christoph Hellwig <hch@lst.de> wrote:
> On Wed, May 06, 2009 at 01:07:35PM +0200, Ingo Molnar wrote:
> > Also, if there's some current use of these markers then it's OK
> > to not do this change right now but replace them with
> > tracepoints in the v2.6.31 merge window, after both the SH and
> > the tracing infrastructure changes are upstream.
>
> There's not user of these. [...]
I'll defer to Paul to decide whether SH needs those markers. If he
added them to ease his own debugging (via whatever external
approach), then that's an OK goal and we can handle this all
politely without destroying functionality, in the next merge window.
Ingo
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] sh: remove stray markers
2009-05-06 11:15 ` Ingo Molnar
@ 2009-05-07 2:04 ` Paul Mundt
2009-05-07 7:30 ` Ingo Molnar
0 siblings, 1 reply; 6+ messages in thread
From: Paul Mundt @ 2009-05-07 2:04 UTC (permalink / raw)
To: Ingo Molnar; +Cc: Christoph Hellwig, rostedt, linux-kernel, Fr?d?ric Weisbecker
On Wed, May 06, 2009 at 01:15:49PM +0200, Ingo Molnar wrote:
>
> * Christoph Hellwig <hch@lst.de> wrote:
>
> > On Wed, May 06, 2009 at 01:07:35PM +0200, Ingo Molnar wrote:
> > > Also, if there's some current use of these markers then it's OK
> > > to not do this change right now but replace them with
> > > tracepoints in the v2.6.31 merge window, after both the SH and
> > > the tracing infrastructure changes are upstream.
> >
> > There's not user of these. [...]
>
> I'll defer to Paul to decide whether SH needs those markers. If he
> added them to ease his own debugging (via whatever external
> approach), then that's an OK goal and we can handle this all
> politely without destroying functionality, in the next merge window.
>
They were primarily added to aid some downstream folks that were just
adding these on their own and generally not paying attention to where the
markers were being placed on subsequent merges. I don't feel too strongly
one way or the other, but as they have proven to be useful for some
people, I would rather transition over to tracepoints during the merge
window than kill them off prematurely.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] sh: remove stray markers
2009-05-07 2:04 ` Paul Mundt
@ 2009-05-07 7:30 ` Ingo Molnar
0 siblings, 0 replies; 6+ messages in thread
From: Ingo Molnar @ 2009-05-07 7:30 UTC (permalink / raw)
To: Paul Mundt, Christoph Hellwig, rostedt, linux-kernel,
Fr?d?ric Weisbecker
* Paul Mundt <lethal@linux-sh.org> wrote:
> On Wed, May 06, 2009 at 01:15:49PM +0200, Ingo Molnar wrote:
> >
> > * Christoph Hellwig <hch@lst.de> wrote:
> >
> > > On Wed, May 06, 2009 at 01:07:35PM +0200, Ingo Molnar wrote:
> > > > Also, if there's some current use of these markers then it's OK
> > > > to not do this change right now but replace them with
> > > > tracepoints in the v2.6.31 merge window, after both the SH and
> > > > the tracing infrastructure changes are upstream.
> > >
> > > There's not user of these. [...]
> >
> > I'll defer to Paul to decide whether SH needs those markers. If he
> > added them to ease his own debugging (via whatever external
> > approach), then that's an OK goal and we can handle this all
> > politely without destroying functionality, in the next merge window.
>
> They were primarily added to aid some downstream folks that were
> just adding these on their own and generally not paying attention
> to where the markers were being placed on subsequent merges. I
> don't feel too strongly one way or the other, but as they have
> proven to be useful for some people, I would rather transition
> over to tracepoints during the merge window than kill them off
> prematurely.
fair enough!
Ingo
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-05-07 7:30 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-06 10:38 [PATCH] sh: remove stray markers Christoph Hellwig
2009-05-06 11:07 ` Ingo Molnar
2009-05-06 11:12 ` Christoph Hellwig
2009-05-06 11:15 ` Ingo Molnar
2009-05-07 2:04 ` Paul Mundt
2009-05-07 7:30 ` Ingo Molnar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox