Lines Matching defs:shadow
194 // Since memprof's mapping is compacting, the shadow chunk may be
208 // Mark the corresponding shadow memory as not needed.
221 // Accumulates the access count from the shadow for the given pointer and size.
223 u64 *shadow = (u64 *)MEM_TO_SHADOW(p);
226 for (; shadow <= shadow_end; shadow++)
227 count += *shadow;
231 // Accumulates the access count from the shadow for the given pointer and size.
234 u8 *shadow = (u8 *)HISTOGRAM_MEM_TO_SHADOW(p);
237 for (; shadow <= shadow_end; shadow++)
238 count += *shadow;
242 // Clears the shadow counters (when memory is allocated).