Files
nvdriver/tests/pf-software/ffi.c
nvidia-driver-rs 4526e6a816 Baseline: validated 30/30 tree with passing Level 7 hardware regression
- Updated tools/post_reboot.sh to check kernel oops taint bit and stuck driver tasks instead of <86400s uptime
- Level 7 hardware regression passed on 0000:b3:00.0 (module 37e6fa430835eee2b426019db3ad70eeb7a9e9070c09c84bd9b973cf56cbe529, 107 inventory words, 0 static mismatches, CUDA baseline verified before and after)
- Updated .gitignore to exclude build archives (*.a, *.rlib), __pycache__, and raw trace dumps
2026-11-23 23:48:38 +00:00

13 lines
626 B
C

#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
#include <stdlib.h>
#include <assert.h>
static bool process=true;static uint32_t fail_at,calls,live;
bool nv_rs_clock_store_process_context(void){return process;}
void *nv_rs_clock_store_alloc(size_t bytes){assert(process);calls++;if(calls==fail_at)return NULL;void *p=calloc(1,bytes);if(p)live++;return p;}
int nv_rs_clock_store_free(void *p){if(!process)return -11;if(p){assert(live);live--;free(p);}return 0;}
void fixture_process(bool value){process=value;}
void fixture_failure(uint32_t value){fail_at=value;calls=0;}
uint32_t fixture_live(void){return live;}