Repository navigation
UPSTREAM: tracing/kprobes: Skip boot setup without cmdline events - #1387
Wenwen Fu (wenwfu) wants to merge 1 commit into
Conversation
|
Merge Check Failed: No CR Numbers Found Error: No Change Request numbers were found. Please add Change Request numbers to your pull request description in the format CRs-Fixed: 12345 or link GitHub issues that are associated with Change Requests. |
2 similar comments
|
Merge Check Failed: No CR Numbers Found Error: No Change Request numbers were found. Please add Change Request numbers to your pull request description in the format CRs-Fixed: 12345 or link GitHub issues that are associated with Change Requests. |
|
Merge Check Failed: No CR Numbers Found Error: No Change Request numbers were found. Please add Change Request numbers to your pull request description in the format CRs-Fixed: 12345 or link GitHub issues that are associated with Change Requests. |
PR #1387 — validate-patchPR: #1387
Final Summary
|
PR #1387 — checker-log-analyzerPR: #1387
Detailed report: Full report
|
Shiraz Hashim (shashim-quic)
left a comment
There was a problem hiding this comment.
CRs-Fixed: missing in PR description.
submit the patch upstream and bring it as FROMLIST. Add Link: tag to commit log pointing to valid lore link submitted upstream.
75585ac to
6171e20
Compare
|
Merge Check Failed: No CR Numbers Found Error: No Change Request numbers were found. Please add Change Request numbers to your pull request description in the format CRs-Fixed: 12345 or link GitHub issues that are associated with Change Requests. |
|
Merge Check Failed: No CR Numbers Found Error: No Change Request numbers were found. Please add Change Request numbers to your pull request description in the format CRs-Fixed: 12345 or link GitHub issues that are associated with Change Requests. |
Thanks for the review. An equivalent fix is already merged into Linux mainline as commit 2cdfe39 ("tracing/kprobes: Skip setup_boot_kprobe_events() when no cmdline event"). I checked qcom-6.18.y and confirmed that this fix is missing. I have replaced my original patch with an unchanged backport of that upstream commit, preserving the original author and upstream Link trailer. |
6171e20 to
fd4009f
Compare
|
Merge Check Failed: No CR Numbers Found Error: No Change Request numbers were found. Please add Change Request numbers to your pull request description in the format CRs-Fixed: 12345 or link GitHub issues that are associated with Change Requests. |
fd4009f to
fd3af38
Compare
|
Merge Check Failed: No CR Numbers Found Error: No Change Request numbers were found. Please add Change Request numbers to your pull request description in the format CRs-Fixed: 12345 or link GitHub issues that are associated with Change Requests. |
Shiraz Hashim (shashim-quic)
left a comment
There was a problem hiding this comment.
Backport the following commit from qualcomm-linux/kernel to qcom-6.18.y:
2cdfe39
("tracing/kprobes: Skip setup_boot_kprobe_events() when no cmdline
event").
No need to add backport details , keep the original commit as it is. If you want to supplement with some details , do that towards end of commit log underbrackets
[user-name: ]
When the 'kprobe_event=' kernel command-line parameter is not provided, there is no need to execute setup_boot_kprobe_events(). This change optimizes the initialization function init_kprobe_trace() by skipping unnecessary work and effectively prevents potential blocking that could arise from contention on the event_mutex lock in subsequent operations. Link: https://patch.msgid.link/20260204015401.163748-1-tianyaxiong@kylinos.cn Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Signed-off-by: Yaxiong Tian <tianyaxiong@kylinos.cn> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org> [wenwfu: Backport to qcom-6.18.y from qualcomm-linux/kernel@2cdfe39] Signed-off-by: Wenwen Fu <wenwfu@qti.qualcomm.com>
fd3af38 to
70df46e
Compare
|
Merge Check Failed: No CR Numbers Found Error: No Change Request numbers were found. Please add Change Request numbers to your pull request description in the format CRs-Fixed: 12345 or link GitHub issues that are associated with Change Requests. |
updated, Pls review again |
Backport upstream commit 2cdfe39
("tracing/kprobes: Skip setup_boot_kprobe_events() when no cmdline event")
to qcom-6.18.y, where this fix is currently missing.
A boot-time regression was observed on Qualcomm Robotics RB3 Gen2
(QCS6490), running Linux 6.18.52-g5b623976f245. When no kprobe_event=
parameter is supplied, setup_boot_kprobe_events() still calls
enable_boot_kprobe_events(), which takes event_mutex. This can contend
with asynchronous trace-event updates and delay kernel initialization.
On an affected boot, the following messages show a 480.014 ms interval:
The upstream fix returns from init_kprobe_trace() before calling
setup_boot_kprobe_events() when the boot-event buffer is empty.
Explicit kprobe_event= parameters continue to use the existing setup
path, and the mutex protection for trace-event updates is preserved.
The four-line code change is carried unchanged from upstream.
Original authorship and upstream trailers are preserved, with my
Signed-off-by added.