| 1329 | } |
| 1330 | |
| 1331 | void cbm_work_note(cbm_work_kind_t kind, void *site, uint64_t bytes, uint64_t aux1, uint64_t aux2) { |
| 1332 | if ((int)kind < 0 || kind >= CBM_WORK_KIND_COUNT || !cbm_memev_enabled()) { |
| 1333 | return; |
| 1334 | } |
| 1335 | tl_state_t *st = tl_get(); |
| 1336 | if (!st || st->busy) { |
| 1337 | return; |
| 1338 | } |
| 1339 | st->busy = true; |
| 1340 | work_add(st, kind, (uintptr_t)site, bytes, aux1, aux2, 0); |
| 1341 | st->busy = false; |
| 1342 | } |
| 1343 | |
| 1344 | __attribute__((noinline)) void cbm_memev_da_note(size_t cap_bytes, size_t used_bytes, |
| 1345 | size_t cap_slots) { |
no test coverage detected