Lines Matching refs:errcode

43   int errcode = pt_insn_sync_forward(&decoder);  in FindNextSynchronizationPoint()  local
45 if (errcode != -pte_eos && errcode < 0) { in FindNextSynchronizationPoint()
50 errcode = pt_insn_sync_forward(&decoder); in FindNextSynchronizationPoint()
51 if (errcode >= 0 || errcode == -pte_eos) in FindNextSynchronizationPoint()
72 return errcode; in FindNextSynchronizationPoint()
82 static int ProcessPTEvents(pt_insn_decoder &decoder, int errcode) { in ProcessPTEvents() argument
83 while (errcode & pts_event_pending) { in ProcessPTEvents()
85 errcode = pt_insn_event(&decoder, &event, sizeof(event)); in ProcessPTEvents()
86 if (errcode < 0) in ProcessPTEvents()
87 return errcode; in ProcessPTEvents()
112 int errcode = FindNextSynchronizationPoint(decoder); in DecodeInstructions() local
113 if (errcode == -pte_eos) in DecodeInstructions()
116 if (errcode < 0) { in DecodeInstructions()
117 instructions.emplace_back(make_error<IntelPTError>(errcode)); in DecodeInstructions()
124 errcode = ProcessPTEvents(decoder, errcode); in DecodeInstructions()
125 if (errcode < 0) { in DecodeInstructions()
126 instructions.emplace_back(make_error<IntelPTError>(errcode)); in DecodeInstructions()
131 errcode = pt_insn_next(&decoder, &insn, sizeof(insn)); in DecodeInstructions()
132 if (errcode == -pte_eos) in DecodeInstructions()
135 if (errcode < 0) { in DecodeInstructions()
136 instructions.emplace_back(make_error<IntelPTError>(errcode, insn.ip)); in DecodeInstructions()
190 if (int errcode = pt_cpu_errata(&config.errata, &config.cpu)) in DecodeInMemoryTrace() local
191 return make_error<IntelPTError>(errcode); in DecodeInMemoryTrace()
202 int errcode = pt_image_set_callback(image, ReadProcessMemory, &process); in DecodeInMemoryTrace() local
203 assert(errcode == 0); in DecodeInMemoryTrace()
204 (void)errcode; in DecodeInMemoryTrace()