linux-next: manual merge of the tip tree with the net-next tree
Subsystems (3)
Hi all,
Today's linux-next merge of the tip tree got a conflict in:
kernel/trace/bpf_trace.c
between commits:
97562633bcba ("bpf: perf event change needed for subsequent bpf helpers")
and more changes ...
from the net-next tree and commit:
7d9285e82db5 ("perf/bpf: Extend the perf_event_read_local() interface, a.k.a. "bpf: perf event change needed for subsequent bpf helpers"")
from the tip tree.
I fixed it up (I just used the version from the net-next 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 8 lines · Stephen Rothwell
Hi all,
Today's linux-next merge of the tip tree got a conflict in:
kernel/trace/bpf_trace.cbetween commits:
Quoted 8 lines
97562633bcba("bpf: perf event change needed for subsequent bpf helpers")
and more changes ...from the net-next tree and commit:
7d9285e82db5("perf/bpf: Extend theperf_event_read_local()interface, a.k.a. "bpf: perf event change needed for subsequent bpf helpers"")from the tip tree.
So those should be the exact same patch; except for Changelog and subject. Code wise there shouldn't be a conflict.
Quoted 12 lines · Peter Zijlstra
Quoted 11 lines · Stephen Rothwell
Hi all,
Today's linux-next merge of the tip tree got a conflict in:
kernel/trace/bpf_trace.cbetween commits:
97562633bcba("bpf: perf event change needed for subsequent bpf helpers")
and more changes ...
Quoted 8 lines
Quoted 5 lines
from the net-next tree and commit:
7d9285e82db5("perf/bpf: Extend theperf_event_read_local()interface, a.k.a. "bpf: perf event change needed for subsequent bpf helpers"")from the tip tree.
So those should be the exact same patch; except for Changelog and subject. Code wise there shouldn't be a conflict.
So the problem is that then we have:
0d3d73aac2ff ("perf/core: Rewrite event timekeeping")
which changes the code. This is a known conflict generation pattern: Git isn't smart enough to sort out that (probably because it would make merges too expensive) - and it's a bad flow in any case.
Thanks,
Ingo
Quoted 24 lines · Ingo Molnar
Quoted 12 lines · Peter Zijlstra
Quoted 11 lines · Stephen Rothwell
Hi all,
Today's linux-next merge of the tip tree got a conflict in:
kernel/trace/bpf_trace.cbetween commits:
97562633bcba("bpf: perf event change needed for subsequent bpf helpers")
and more changes ...Quoted 8 lines
Quoted 5 lines
from the net-next tree and commit:
7d9285e82db5("perf/bpf: Extend theperf_event_read_local()interface, a.k.a. "bpf: perf event change needed for subsequent bpf helpers"")from the tip tree.
So those should be the exact same patch; except for Changelog and subject. Code wise there shouldn't be a conflict.
Quoted 7 lines
So the problem is that then we have:
0d3d73aac2ff("perf/core: Rewrite event timekeeping")which changes the code. This is a known conflict generation pattern: Git isn't smart enough to sort out that (probably because it would make merges too expensive) - and it's a bad flow in any case.
Hmm, I thought having that same base patch in both trees would allow it to resolve that conflict. A well..
Quoted 27 lines · Peter Zijlstra
Quoted 26 lines · Ingo Molnar
Quoted 12 lines · Peter Zijlstra
Quoted 11 lines · Stephen Rothwell
Hi all,
Today's linux-next merge of the tip tree got a conflict in:
kernel/trace/bpf_trace.cbetween commits:
97562633bcba("bpf: perf event change needed for subsequent bpf helpers")
and more changes ...Quoted 8 lines
Quoted 5 lines
from the net-next tree and commit:
7d9285e82db5("perf/bpf: Extend theperf_event_read_local()interface, a.k.a. "bpf: perf event change needed for subsequent bpf helpers"")from the tip tree.
So those should be the exact same patch; except for Changelog and subject. Code wise there shouldn't be a conflict.
So the problem is that then we have:
Quoted 8 lines
Quoted 5 lines
0d3d73aac2ff("perf/core: Rewrite event timekeeping")which changes the code. This is a known conflict generation pattern: Git isn't smart enough to sort out that (probably because it would make merges too expensive) - and it's a bad flow in any case.
Hmm, I thought having that same base patch in both trees would allow it to resolve that conflict. A well..
I think that would require content level matching of a rather horrifying volume to resolve, slowing down Git merges horribly. (Maybe there's an option for Git to do that, but it's not the default I think.)
Thanks,
Ingo
Hi Peter,
Quoted 3 lines · On Wed, 1 Nov 2017 09:55:24 +0100 Peter Zijlstra <[email protected]> wrote:
Hmm, I thought having that same base patch in both trees would allow it to resolve that conflict. A well..
There is a difference between having he same patch and the same commit ...
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 27 lines · Peter Zijlstra
Quoted 26 lines · Ingo Molnar
Quoted 12 lines · Peter Zijlstra
Quoted 11 lines · Stephen Rothwell
Hi all,
Today's linux-next merge of the tip tree got a conflict in:
kernel/trace/bpf_trace.cbetween commits:
97562633bcba("bpf: perf event change needed for subsequent bpf helpers")
and more changes ...Quoted 8 lines
Quoted 5 lines
from the net-next tree and commit:
7d9285e82db5("perf/bpf: Extend theperf_event_read_local()interface, a.k.a. "bpf: perf event change needed for subsequent bpf helpers"")from the tip tree.
So those should be the exact same patch; except for Changelog and subject. Code wise there shouldn't be a conflict.
So the problem is that then we have:
Quoted 8 lines
Quoted 5 lines
0d3d73aac2ff("perf/core: Rewrite event timekeeping")which changes the code. This is a known conflict generation pattern: Git isn't smart enough to sort out that (probably because it would make merges too expensive) - and it's a bad flow in any case.
Hmm, I thought having that same base patch in both trees would allow it to resolve that conflict. A well..
sigh. I had the same impression.
In the past the same patch was applied to both tip and net-next and there were no conflicts.
May be git could have been smarter if you kept the same one line commit description as we have in net-next?
Will it help if we push the same ("perf/core: Rewrite event timekeeping") commit into net-next ? They will be in different order, so it probably won't help and only make things worse. That sucks.
I think we need to discuss what should be our apporach moving forward to commits that affect tracing and networking at the same time. I don't think pushing to only one tree is an option, since it will be close to impossible to resolve such conflicts at merge window time. Linus would need to do some major surgery to untangle the mess. I think it's still the best to push to both trees and expect such mini-conflicts to appear in linux-next.
Like this time it was pretty obvious that commits are the same and no real action necessary.
Also what do you mean by "same patch != same commit" ? Like if we had pushed to some 3rd tree first and then pulled into tip and net-next it would have been better?
Hi Alexei,
Quoted 4 lines · On Wed, 1 Nov 2017 09:27:14 -0700 Alexei Starovoitov…
Also what do you mean by "same patch != same commit" ? Like if we had pushed to some 3rd tree first and then pulled into tip and net-next it would have been better?
Well, it would not have caused a conflict.
Signature · 2 lines
Cheers, Stephen Rothwell