lttng-instrumentation-sh.patch issue
"Giuseppe Cavallaro" <[email protected]> Wed, 28 Nov 2007 09:01:28 +0100
| Newsgroups | gmane.linux.kernel.tracing |
|---|---|
| Message-ID | <[email protected]> |
Applying the lttng-instrumentation-sh.patch there is a duplicated call
of do_fork function in SH arch code (see below).
------------------------------------------------------------------------
int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags)
{
unsigned long pid;
struct pt_regs regs;
memset(®s, 0, sizeof(regs));
regs.regs[4] = (unsigned long)arg;
regs.regs[5] = (unsigned long)fn;
regs.pc = (unsigned long)kernel_thread_helper;
regs.sr = (1 << 30);
/* Ok, create the new process.. */
return do_fork(flags | CLONE_VM | CLONE_UNTRACED, 0, <<<<<
These two lines have to be removed
®s, 0, NULL, NULL); <<<<<
(as i386 does for example).
pid = do_fork(flags | CLONE_VM | CLONE_UNTRACED, 0,
®s, 0, NULL, NULL);
trace_mark(kernel_arch_kthread_create, "pid %ld fn %p", pid, fn);
return pid;
}
------------------------------------------------------------------------
Regards,
Giuseppe
_______________________________________________
Ltt-dev mailing list
[email protected]
http://listserv.shafik.org/mailman/listinfo/ltt-dev