Skip to contentSkip to conversation

linux-next: manual merge of the ftrace tree with Linus' tree

DISCUSSION Stephen Rothwell 3 participants 3 messages Sep 27, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
#1 lore raw
Quoted 9 lines · Stephen Rothwell

Hi all,

Today's linux-next merge of the ftrace tree got a conflict in:

kernel/trace/trace_uprobe.c

between commit:

Quoted 7 lines

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.

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
index 87b468d93f6a..c3df411a2684 100644
@@ -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

maintainer
#2 lore raw
Quoted 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, 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 +1 -1
index 87b468d93f6a..c3df411a2684 100644
@@ -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