linux-lts-quantal-3.5.0/kernel/replay.c
/*
 * Adds another slab for args/retparams/signals allocation,
 * if no slab exists, then we create one */
Adds another slab for args/retparams/signals allocation,
if no slab exists, then we create one
Adds another slab for args / retparams / signals allocation if no slab exists then we create one
static int add_argsalloc_node (struct record_thread* prect, void* slab, size_t size) { 
	struct argsalloc_node* new_node;
	new_node = new_argsalloc_node(slab, size);
	if (new_node == NULL) {
		printk("Pid %d add_argsalloc_node: could not create new argsalloc_node\n", prect->rp_record_pid);
		return -1;
	}
	MPRINT ("Pid %d add_argsalloc_node: adding an args slab to record_thread\n", prect->rp_record_pid);
	list_add(&new_node->list, &prect->rp_argsalloc_list);
	return 0;
}
static int add_argsalloc_node ( struct record_thread * prect , void * slab , size_t size ) { struct argsalloc_node * new_node ; new_node = new_argsalloc_node ( slab , size ) ; if ( new_node == NULL ) { printk ( " \n " , prect -> rp_record_pid ) ; return -1 ; } MPRINT ( " \n " , prect -> rp_record_pid ) ; list_add ( & new_node -> list , & prect -> rp_argsalloc_list ) ; return 0 ; }
Adds another slab for args/retparams/signals allocation,
 if no slab exists, then we create one
Adds another slab for args / retparams / signals allocation if no slab exists then we create one
// Add to front of the list