linux-lts-quantal-3.5.0/kernel/replay.c
// function to keep track of the sysv identifiers, since we always want to return the record identifier
function to keep track of the sysv identifiers, since we always want to return the record identifier
function to keep track of the sysv identifiers since we always want to return the record identifier
static int add_sysv_mapping (struct replay_thread* prt, int record_id, int replay_id) { 
	struct sysv_mapping* tmp;
	tmp = KMALLOC(sizeof(struct sysv_mapping), GFP_KERNEL); 
	if (tmp == NULL) {
		printk("Pid %d (recpid %d) add_sysv_mapping: could not create new sysv_mapping\n", current->pid, prt->rp_record_thread->rp_record_pid);
		return -1;
	}
	tmp->record_id = record_id;
	tmp->replay_id = replay_id;
	MPRINT ("Pid %d (recpid %d) add_sysv_mapping: adding a SYS V ID mapping\n", current->pid, prt->rp_record_thread->rp_record_pid);
	list_add(&tmp->list, &prt->rp_sysv_list);
	return 0;
}
static int add_sysv_mapping ( struct replay_thread * prt , int record_id , int replay_id ) { struct sysv_mapping * tmp ; tmp = KMALLOC ( sizeof ( struct sysv_mapping ) , GFP_KERNEL ) ; if ( tmp == NULL ) { printk ( " \n " , current -> pid , prt -> rp_record_thread -> rp_record_pid ) ; return -1 ; } tmp -> record_id = record_id ; tmp -> replay_id = replay_id ; MPRINT ( " \n " , current -> pid , prt -> rp_record_thread -> rp_record_pid ) ; list_add ( & tmp -> list , & prt -> rp_sysv_list ) ; return 0 ; }
function to keep track of the sysv identifiers, since we always want to return the record identifier
function to keep track of the sysv identifiers since we always want to return the record identifier
// Add to front of the list