mirror of
https://github.com/QuixiAI/nvdriver.git
synced 2026-12-06 14:38:47 +00:00
- 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
13 lines
626 B
C
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;}
|