Lines Matching refs:addr
68 uptr addr;
89 char *f, int l, uptr addr, uptr size, char *desc) {
92 if (race->addr == addr && race->size == size) {
99 race->addr = addr;
118 static ExpectRace *FindRace(ExpectRace *list, uptr addr, uptr size) {
120 uptr maxbegin = max(race->addr, addr);
121 uptr minend = min(race->addr + race->size, addr + size);
128 static bool CheckContains(ExpectRace *list, uptr addr, uptr size) {
129 ExpectRace *race = FindRace(list, addr, size);
132 DPrintf("Hit expected/benign race: %s addr=%zx:%d %s:%d\n",
133 race->desc, race->addr, (int)race->size, race->file, race->line);
149 bool IsExpectedReport(uptr addr, uptr size) {
151 if (CheckContains(&dyn_ann_ctx->expect, addr, size))
153 if (CheckContains(&dyn_ann_ctx->benign, addr, size))
217 Printf(" %s addr=%zx %s:%d\n",
218 race->desc, race->addr, race->file, race->line);
226 void INTERFACE_ATTRIBUTE AnnotateHappensBefore(char *f, int l, uptr addr) {
228 Release(thr, pc, addr);
231 void INTERFACE_ATTRIBUTE AnnotateHappensAfter(char *f, int l, uptr addr) {
233 Acquire(thr, pc, addr);
355 DPrintf("Add expected race: %s addr=%zx %s:%d\n", desc, mem, f, l);
363 DPrintf("Add benign race: %s addr=%zx %s:%d\n", desc, mem, f, l);
410 char *f, int l, uptr addr, uptr size) {
415 char *f, int l, uptr addr, uptr size) {
428 void INTERFACE_ATTRIBUTE WTFAnnotateHappensBefore(char *f, int l, uptr addr) {
432 void INTERFACE_ATTRIBUTE WTFAnnotateHappensAfter(char *f, int l, uptr addr) {
525 void __tsan_mutex_pre_signal(void *addr, unsigned flagz) {
532 void __tsan_mutex_post_signal(void *addr, unsigned flagz) {
539 void __tsan_mutex_pre_divert(void *addr, unsigned flagz) {
547 void __tsan_mutex_post_divert(void *addr, unsigned flagz) {