Skip to content

Commit 7f3443e

Browse files
committed
linux+callstack: Fix failing callstack
The callstack fails if a kernel trace which has the same host id is opened alongside the ust trace and it was taken without containing the thread ids of the ust trace. Signed-off-by: Arnaud Fiorini <[email protected]>
1 parent 3389fa5 commit 7f3443e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

analysis/org.eclipse.tracecompass.analysis.os.linux.core/src/org/eclipse/tracecompass/analysis/os/linux/core/kernel/KernelThreadInformationProvider.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,9 @@ private static Map<Integer, String> getQuarkToThreadIds(KernelAnalysisModule mod
617617
Map<Integer, String> quarkToThreadIds = new HashMap<>();
618618
for (Integer threadId : threadIds) {
619619
int threadQuark = ss.optQuarkAbsolute(Attributes.THREADS, threadId.toString());
620+
if (threadQuark == ITmfStateSystem.INVALID_ATTRIBUTE) {
621+
continue;
622+
}
620623
quarkToThreadIds.put(threadQuark, threadId.toString());
621624
int syscallQuark = ss.optQuarkRelative(threadQuark, Attributes.SYSTEM_CALL);
622625
if (syscallQuark != ITmfStateSystem.INVALID_ATTRIBUTE) {

0 commit comments

Comments
 (0)