Home
last modified time | relevance | path

Searched refs:tgid (Results 1 – 7 of 7) sorted by relevance

/tools/trebuchet/core/common/src/main/kotlin/trebuchet/importers/ftrace/
DFtraceImporterState.kt44 private fun createProcess(tgid: Int, name: String? = null): ThreadModelFragment { in <lambda>()
45 val proc = ProcessModelFragment(tgid, name) in <lambda>()
47 val thread = proc.threadFor(tgid, name) in <lambda>()
48 if (pidMap[tgid] != null) { in <lambda>()
49 IllegalStateException("Unable to create process $tgid - already exists!") in <lambda>()
51 pidMap.put(tgid, thread) in <lambda>()
55 fun processFor(tgid: Int, name: String? = null): ProcessModelFragment { in <lambda>()
56 val thread = pidMap[tgid] ?: createProcess(tgid, name) in <lambda>()
57 thread.process.hint(tgid, name) in <lambda>()
63 val tgid = process.id in <lambda>() constant
[all …]
DFtraceLine.kt41 var tgid: Int variable in trebuchet.importers.ftrace.FtraceLine
56 private fun set(taskName: String?, pid: Int, tgid: Int, cpu: Int, timestamp: Double, in set()
60 _tgid = tgid in set()
126 var tgid: Int = InvalidId in parseLine() variable
138 tgid = readInt() in parseLine()
153 ftraceLine.set(if (taskName === NullTaskName) null else taskName, pid, tgid, cpu, in parseLine()
/tools/trebuchet/core/common/src/test/kotlin/trebuchet/importers/ftrace/
DFtraceLineTest.kt35 assertEquals(7100, line.tgid) in <lambda>()
51 assertEquals(InvalidId, line.tgid) in <lambda>()
68 assertEquals(InvalidId, line.tgid) in <lambda>()
84 assertEquals(InvalidId, line.tgid) in <lambda>()
98 assertEquals(2303, line.tgid) in <lambda>()
113 assertEquals(12303, line.tgid) in <lambda>()
128 assertEquals(InvalidId, line.tgid) in <lambda>()
DTracingMarkerEventTest.kt27 assertEquals(5000, begin.tgid) in testBegin()
37 assertEquals(42, counter.tgid) in testCounter()
61 assertEquals(1150, start.tgid) in testStartAsync()
68 assertEquals(1150, finish.tgid) in testFinishAsync()
DFtraceEventTest.kt33 assertEquals(7100, event.tgid) in testParseLineComplete()
47 assertEquals(InvalidId, event.tgid) in testParseLineUnknownTgid()
59 assertEquals(InvalidId, event.tgid) in testParseLineNoTgid()
78 assertEquals(InvalidId, event.tgid) in testParseLineLegacy()
/tools/trebuchet/core/model/src/main/kotlin/trebuchet/model/fragments/
DThreadModelFragment.kt28 …fun hint(pid: Int = InvalidId, name: String? = null, tgid: Int = InvalidId, processName: String? =… in hint()
31 if (this.process.id == InvalidId) this.process.id = tgid in hint()
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/importers/ftrace/events/
DFtraceEvent.kt28 val tgid: Int, in <lambda>() constant in trebuchet.importers.ftrace.events.FtraceEvent
54 tgid = intOr(3, InvalidId), in <lambda>()