Skip to content

Commit d565a9a

Browse files
committed
pkg/report: get only the thread local reports
After this change we'll see only the reports coming from the same thread.
1 parent 96a211b commit d565a9a

File tree

6 files changed

+1396
-144
lines changed

6 files changed

+1396
-144
lines changed

pkg/report/linux.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ func (ctx *linux) Parse(output []byte) *Report {
167167
rep := &Report{
168168
Output: output,
169169
StartPos: startPos,
170+
ThreadID: context,
170171
}
171172
endPos, reportEnd, report, prefix := ctx.findReport(output, oops, startPos, context, questionable)
172173
rep.EndPos = endPos

pkg/report/report.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ type Report struct {
7676
reportPrefixLen int
7777
// symbolized is set if the report is symbolized. It prevents double symbolization.
7878
symbolized bool
79+
// On Linux systems it is available with enabled CONFIG_PRINTK_CALLER.
80+
ThreadID string
7981
}
8082

8183
type ExecutorInfo struct {

0 commit comments

Comments
 (0)