debug messages: implement dynamic debug
Heavily inspired off linux kernel's dynamic debug: * add a /sys/kernel/debug/dynamic_debug/control file (accessible from linux side in /sys/class/mcos/mcos0/sys/kernel/debug/dynamic_debug/control) * read from file to list debug statements (currently limited to 4k in size) * write to file with '[file foo ][func bar ][line [x][-[y]]] [+-]p' to change values Side effects: * reindented all linker scripts, there is a new __verbose section * added string function strpbrk Change-Id: I36d7707274dcc3ecaf200075a31a2f0f76021059
This commit is contained in:
@ -283,7 +283,8 @@ static int xpmem_close(
|
||||
int n_opened;
|
||||
|
||||
XPMEM_DEBUG("call: fd=%d, pid=%d, rgid=%d",
|
||||
mckfd->fd, proc->pid, proc->rgid);
|
||||
mckfd->fd, cpu_local_var(current)->proc->pid,
|
||||
cpu_local_var(current)->proc->rgid);
|
||||
|
||||
n_opened = ihk_atomic_dec_return(&xpmem_my_part->n_opened);
|
||||
XPMEM_DEBUG("n_opened=%d", n_opened);
|
||||
|
||||
Reference in New Issue
Block a user