linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: manual merge of the ftrace tree
@ 2008-08-21  3:09 Stephen Rothwell
  2008-08-21  3:33 ` Greg KH
  2008-08-21  4:03 ` Mathieu Desnoyers
  0 siblings, 2 replies; 19+ messages in thread
From: Stephen Rothwell @ 2008-08-21  3:09 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, H. Peter Anvin
  Cc: linux-next, Greg KH, Mathieu Desnoyers, Jason Baron

Hi all,

[I have reported this previously but something has changed slightly.]

Today's linux-next merge of the ftrace tree got a conflict in
kernel/module.c between commit bf8b9a59e335ca159aa4b3878ced0e94ea74cbc4
("driver core: basic infrastructure for per-module dynamic debug
messages") from the driver-core tree and commit
e543dff1468a55cdff9932dd3a806524790cf0b3 ("tracing: Kernel Tracepoints")
from the ftrace tree.

Just overlapping additions.  I fixed it up (see below).
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

diff --cc kernel/module.c
index b610466,6962348..0000000
--- a/kernel/module.c
+++ b/kernel/module.c
@@@ -44,9 -44,9 +44,10 @@@
  #include <linux/unwind.h>
  #include <asm/uaccess.h>
  #include <asm/cacheflush.h>
 +#include <asm/sections.h>
  #include <linux/license.h>
  #include <asm/sections.h>
+ #include <linux/tracepoint.h>
  
  #if 0
  #define DEBUGP printk
@@@ -1866,7 -1832,8 +1867,9 @@@ static struct module *load_module(void 
  #endif
  	unsigned int markersindex;
  	unsigned int markersstringsindex;
 +	unsigned int verboseindex;
+ 	unsigned int tracepointsindex;
+ 	unsigned int tracepointsstringsindex;
  	struct module *mod;
  	long err = 0;
  	void *percpu = NULL, *ptr = NULL; /* Stops spurious gcc warning */
@@@ -2153,7 -2120,9 +2156,10 @@@
  	markersindex = find_sec(hdr, sechdrs, secstrings, "__markers");
   	markersstringsindex = find_sec(hdr, sechdrs, secstrings,
  					"__markers_strings");
 +	verboseindex = find_sec(hdr, sechdrs, secstrings, "__verbose");
+ 	tracepointsindex = find_sec(hdr, sechdrs, secstrings, "__tracepoints");
+ 	tracepointsstringsindex = find_sec(hdr, sechdrs, secstrings,
+ 					"__tracepoints_strings");
  
  	/* Now do relocations. */
  	for (i = 1; i < hdr->e_shnum; i++) {
@@@ -2203,8 -2179,11 +2216,12 @@@
  		marker_update_probe_range(mod->markers,
  			mod->markers + mod->num_markers);
  #endif
+ #ifdef CONFIG_TRACEPOINTS
+ 		tracepoint_update_probe_range(mod->tracepoints,
+ 			mod->tracepoints + mod->num_tracepoints);
+ #endif
+ 	}
 +	dynamic_printk_setup(mod, sechdrs, verboseindex, secstrings);
  	err = module_finalize(hdr, sechdrs, mod);
  	if (err < 0)
  		goto cleanup;

^ permalink raw reply	[flat|nested] 19+ messages in thread
* linux-next: manual merge of the ftrace tree
@ 2008-12-11  0:41 Stephen Rothwell
  2008-12-11  1:23 ` Frédéric Weisbecker
  0 siblings, 1 reply; 19+ messages in thread
From: Stephen Rothwell @ 2008-12-11  0:41 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, H. Peter Anvin
  Cc: linux-next, Hugh Dickins, Frederic Weisbecker, Steven Rostedt

Hi all,

Today's linux-next merge of the ftrace tree got a conflict in
include/linux/ftrace.h between commit
9c24624727f6d6c460e45762a408ca5f5b9b8ef2 ("KSYM_SYMBOL_LEN fixes") from
Linus' tree and commit 3f5ec13696fd4a33bde42f385406cbb1d3cc96fd
("tracing/fastboot: move boot tracer structs and funcs into their own
header") from the ftrace tree.

The latter moved some code that the former fixed.  I fixed it up as best
I could (see below - I used the ftrace tree version of
include/linux/ftrace.h), but it should be checked and a merge with Linus'
tree done to resolve this conflict.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

diff --git a/include/trace/boot.h b/include/trace/boot.h
index 6b54537..3ec58b4 100644
--- a/include/trace/boot.h
+++ b/include/trace/boot.h
@@ -9,7 +9,7 @@
  */
 struct boot_trace_call {
 	pid_t			caller;
-	char			func[KSYM_NAME_LEN];
+	char			func[KSYM_SYMBOL_LEN];
 };
 
 /*
@@ -17,7 +17,7 @@ struct boot_trace_call {
  * while it returns.
  */
 struct boot_trace_ret {
-	char			func[KSYM_NAME_LEN];
+	char			func[KSYM_SYMBOL_LEN];
 	int				result;
 	unsigned long long	duration;		/* nsecs */
 };

^ permalink raw reply related	[flat|nested] 19+ messages in thread
* linux-next: manual merge of the ftrace tree
@ 2008-12-01  0:37 Stephen Rothwell
  2008-12-01  7:40 ` Ingo Molnar
  0 siblings, 1 reply; 19+ messages in thread
From: Stephen Rothwell @ 2008-12-01  0:37 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, H. Peter Anvin
  Cc: linux-next, Lai Jiangshan, Steven Rostedt

[-- Attachment #1: Type: text/plain, Size: 598 bytes --]

Hi all,

Today's linux-next merge of the ftrace tree got a conflict in
kernel/trace/ring_buffer.c between commit
4f5a7f40ddbae98569acbb99118a98570315579c ("ftrace: prevent recursion")
from Linus' tree and commit 182e9f5f704ed6b9175142fe8da33c9ce0c52b52
("ftrace: insert in the ftrace_preempt_disable()/enable() functions")
from the ftrace tree.

I am pretty sure that the latter supercedes the former, so I used that
version.  Please fix this conflict up in the ftrace tree soon.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread
* linux-next: manual merge of the ftrace tree
@ 2008-11-24  0:11 Stephen Rothwell
  2008-11-24  2:11 ` Ingo Molnar
  0 siblings, 1 reply; 19+ messages in thread
From: Stephen Rothwell @ 2008-11-24  0:11 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, H. Peter Anvin; +Cc: linux-next, Steven Rostedt

Hi all,

Today's linux-next merge of the ftrace tree got a conflict in
kernel/trace/ftrace.c between commits
820432783190b4096499e38a4a4d7095c511913d ("ftrace: make filtered
functions effective on setting") and
32464779a1b8c15e9aa9aa0306b2f735080df9d8 ("ftrace: fix dyn ftrace filter
selection") from Linus' tree and commit ftrace_startup ("ftrace: add
quick function trace stop") from the ftrace tree.

I fixed it up (see below - which may not be correct) but it needs to be
fixed in the ftrace tree.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

diff --cc kernel/trace/ftrace.c
index 78db083,beb21a5..0000000
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@@ -526,8 -560,9 +553,8 @@@ static void ftrace_startup(void
  		return;
  
  	mutex_lock(&ftrace_start_lock);
- 	ftrace_start++;
+ 	ftrace_start_up++;
 -	if (ftrace_start_up == 1)
 -		command |= FTRACE_ENABLE_CALLS;
 +	command |= FTRACE_ENABLE_CALLS;
  
  	if (saved_ftrace_func != ftrace_trace_function) {
  		saved_ftrace_func = ftrace_trace_function;
@@@ -1181,7 -1212,7 +1208,7 @@@ ftrace_regex_release(struct inode *inod
  
  	mutex_lock(&ftrace_sysctl_lock);
  	mutex_lock(&ftrace_start_lock);
- 	if (ftrace_start && ftrace_enabled)
 -	if (iter->filtered && ftrace_start_up && ftrace_enabled)
++	if (ftrace_start_up && ftrace_enabled)
  		ftrace_run_update_code(FTRACE_ENABLE_CALLS);
  	mutex_unlock(&ftrace_start_lock);
  	mutex_unlock(&ftrace_sysctl_lock);

^ permalink raw reply	[flat|nested] 19+ messages in thread
* linux-next: manual merge of the ftrace tree
@ 2008-10-14  5:03 Stephen Rothwell
  2008-10-14  6:26 ` Ingo Molnar
  0 siblings, 1 reply; 19+ messages in thread
From: Stephen Rothwell @ 2008-10-14  5:03 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, H. Peter Anvin; +Cc: linux-next

[-- Attachment #1: Type: text/plain, Size: 454 bytes --]

Hi all,

Today's linux-next merge of the ftrace tree got a conflict in
arch/x86/kernel/traps.c between various commits now in Linus' tree and
various commits from the ftrace tree.

The result is a bit of a mess and really needs to be resolved by someone
who understands the changes involved.  So I have dropped the ftrace tree
for today.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread
* linux-next: manual merge of the ftrace tree
@ 2008-08-15  1:54 Stephen Rothwell
  2008-08-25  2:01 ` Stephen Rothwell
  0 siblings, 1 reply; 19+ messages in thread
From: Stephen Rothwell @ 2008-08-15  1:54 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, H. Peter Anvin
  Cc: linux-next, Mathieu Desnoyers, Jason Baron, Greg KH

[-- Attachment #1: Type: text/plain, Size: 558 bytes --]

Hi all,

Today's linux-next merge of the ftrace tree got a conflict in
kernel/module.c between commit 1b75321c2d0561d9ecfe3794fa939264f3eb7e26
("driver core: basic infrastructure for per-module dynamic debug
messages") from the driver-core tree and commit
e543dff1468a55cdff9932dd3a806524790cf0b3 ("tracing: Kernel Tracepoints")
from the ftrace tree.

Overlapping additions.  I fixed it up. Probably worth a look once I
publish the tree.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

end of thread, other threads:[~2008-12-12  9:23 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-21  3:09 linux-next: manual merge of the ftrace tree Stephen Rothwell
2008-08-21  3:33 ` Greg KH
2008-08-21  4:03 ` Mathieu Desnoyers
  -- strict thread matches above, loose matches on Subject: below --
2008-12-11  0:41 Stephen Rothwell
2008-12-11  1:23 ` Frédéric Weisbecker
2008-12-11  2:07   ` Stephen Rothwell
2008-12-12  9:23   ` Ingo Molnar
2008-12-01  0:37 Stephen Rothwell
2008-12-01  7:40 ` Ingo Molnar
2008-11-24  0:11 Stephen Rothwell
2008-11-24  2:11 ` Ingo Molnar
2008-11-24  2:23   ` Stephen Rothwell
2008-10-14  5:03 Stephen Rothwell
2008-10-14  6:26 ` Ingo Molnar
2008-10-14  7:00   ` Stephen Rothwell
2008-08-15  1:54 Stephen Rothwell
2008-08-25  2:01 ` Stephen Rothwell
2008-08-25  9:16   ` Ingo Molnar
2008-08-25 11:56     ` Stephen Rothwell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).