linux-next: manual merge of the ftrace tree with Linus' tree
Subsystems (2)
Hi all,
Today's linux-next merge of the ftrace tree got a conflict in:
kernel/trace/trace_uprobe.c
between commit:
10cdb82aa77f ("uprobes: turn trace_uprobe's nhit counter to be per-CPU one")
from Linus' tree and commit:
ca088d067ebd ("uprobes: make trace_uprobe->nhit counter a per-CPU one")
from the ftrace tree.
I fixed it up (I just used the version from Linus' tree) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 9 lines · Stephen Rothwell
Hi all,
Today's linux-next merge of the ftrace tree got a conflict in:
kernel/trace/trace_uprobe.cbetween commit:
Quoted 7 lines
10cdb82aa77f("uprobes: turn trace_uprobe's nhit counter to be per-CPU one")from Linus' tree and commit:
ca088d067ebd("uprobes: maketrace_uprobe->nhitcounter a per-CPU one")from the ftrace tree.
Hm... sounds like two versions of my patch were applied to two different trees or something? FWIW, 10cdb82aa77f is the right one cto pick (I didn't check which one is in Linus' tree), but the differences are tiny.
kernel/trace/trace_uprobe.c +0 -0
@@ -834,7 +834,7 @@ static int probes_profile_seq_show(struct seq_file
*m, void *v)
nhits = 0;
for_each_possible_cpu(cpu) {
- nhits += READ_ONCE(*per_cpu_ptr(tu->nhits, cpu));
+ nhits += per_cpu(*tu->nhits, cpu);
}
seq_printf(m, " %s %-44s %15lu\n", tu->filename,Quoted 11 lines
I fixed it up (I just used the version from Linus' tree) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.
--
Cheers,
Stephen Rothwell
Steven Rostedt
maintainerQuoted 18 lines · On Fri, 27 Sep 2024 11:13:30 -0700 Andrii Nakryiko <[email protected]>…
Hm... sounds like two versions of my patch were applied to two different trees or something? FWIW,
10cdb82aa77fis the right one cto pick (I didn't check which one is in Linus' tree), but the differences are tiny.kernel/trace/trace_uprobe.c +1
-1@@ -834,7 +834,7 @@ static int probes_profile_seq_show(struct seq_file *m, void *v) nhits =0 ;for_each_possible_cpu (cpu) { - nhits +=READ_ONCE (*per_cpu_ptr (tu->nhits, cpu)); + nhits +=per_cpu (*tu->nhits, cpu); }
Quoted 3 lines
seq_printf(m, " %s %-44s %15lu\n", tu->filename,Quoted 1 line
It looks like Masami rebased his tree and I didn't do the update yet.
I updated the latest for-next in the tracing repo, so everything should be good again.
-- Steve