search for: p_ru

Displaying 2 results from an estimated 2 matches for "p_ru".

Did you mean: p_r
2006 Mar 02
1
Failing to understand getrusage()
I'm failing to understand how getrusage() works, which is a bit perplexing, because it doesn't seem like it would be terribly complicated. I've attached the code. My aim is to verify that I can use getrusage() to do (admittedly crude) instrumentation of which functions in my program are allocating lots of memory[1]. So I figure I can call getrusage() at various points and look at
2003 Apr 08
0
Panic dereferencing p->p_leader during exit1()
...x0}, p_oppid = 0, p_dupfd = 0, p_vmspace = 0xd477b440, p_estcpu = 42, p_cpticks = 17, p_pctcpu = 229, p_wchan = 0x0, p_wmesg = 0xc02985e9 "biord", p_swtime = 11, p_slptime = 0, p_realtimer = { it_interval = {tv_sec = 0, tv_usec = 0}, it_value = {tv_sec = 0, tv_usec = 0}}, p_runtime = 2935395, p_uu = 0, p_su = 549755813891, p_iu = 0, p_uticks = 884763262976, p_sticks = 1095216660492, p_iticks = 549755813888, p_traceflag = 0, p_tracep = 0xa8, p_siglist = { __bits = {0, 0, 0, 0}}, p_textvp = 0xe18f5e40, p_lock = 0 '\000', p_oncpu = 0 '\000', p_l...