Lines Matching +full:re +full:- +full:config

2  * Copyright (c) 2013-2019, Intel Corporation
33 #include "intel-pt.h"
36 /* A psb packet contains a unique 2-byte repeating pattern.
59 return truncate(pointer + alignment - 1, alignment); in align()
68 const struct pt_config *config) in pt_find_psb() argument
73 if (!pos || !config) in pt_find_psb()
76 begin = config->begin; in pt_find_psb()
77 end = config->end; in pt_find_psb()
100 * We're right after the psb payload and within the buffer. in pt_find_psb()
103 pos -= ptps_psb; in pt_find_psb()
105 /* Check if we're still inside the buffer. */ in pt_find_psb()
109 /* Check that this is indeed a psb packet we're at. */ in pt_find_psb()
113 errcode = pt_pkt_read_psb(pos, config); in pt_find_psb()
125 * This will result in -pte_eos when we actually try to read from @pos. in pt_sync_within_bounds()
131 const struct pt_config *config) in pt_sync_set() argument
136 if (!sync || !pos || !config) in pt_sync_set()
137 return -pte_internal; in pt_sync_set()
139 begin = config->begin; in pt_sync_set()
140 end = config->end; in pt_sync_set()
143 return -pte_eos; in pt_sync_set()
146 return -pte_eos; in pt_sync_set()
148 /* Check that this is indeed a psb packet we're at. */ in pt_sync_set()
150 return -pte_nosync; in pt_sync_set()
152 errcode = pt_pkt_read_psb(pos, config); in pt_sync_set()
162 const struct pt_config *config) in pt_sync_forward() argument
166 if (!sync || !pos || !config) in pt_sync_forward()
167 return -pte_internal; in pt_sync_forward()
170 begin = config->begin; in pt_sync_forward()
171 end = config->end; in pt_sync_forward()
174 return -pte_internal; in pt_sync_forward()
186 return -pte_eos; in pt_sync_forward()
194 current = pt_find_psb(pos, config); in pt_sync_forward()
210 const struct pt_config *config) in pt_sync_backward() argument
214 if (!sync || !pos || !config) in pt_sync_backward()
215 return -pte_internal; in pt_sync_backward()
217 begin = config->begin; in pt_sync_backward()
218 end = config->end; in pt_sync_backward()
221 return -pte_internal; in pt_sync_backward()
231 pos -= sizeof(uint64_t); in pt_sync_backward()
233 return -pte_eos; in pt_sync_backward()
241 next = pt_find_psb(next, config); in pt_sync_backward()