rc->page_order  = page_order; rc->nr_areas    = nr_areas; rc->active_area = 0; rc->level       = DEBUG_DEFAULT_LEVEL; rc->buf_size    = buf_size; rc->entry_size  = sizeof(debug_entry_t) + buf_size; strlcpy(rc->name, name, sizeof(rc->name)); 
rc->pages_per_area = pages_per_area; rc->nr_areas       = nr_areas; rc->active_area    = 0; rc->level          = level; rc->buf_size       = buf_size; rc->entry_size     = sizeof(debug_entry_t) + buf_size; strlcpy(rc->name, name, sizeof(rc->name)-1); 
static debug_info_t*  debug_info_alloc(char *name, int page_order,                                        int nr_areas, int buf_size){	debug_info_t* rc;	int i;	/* alloc everything */	rc = (debug_info_t*) kmalloc(sizeof(debug_info_t), GFP_ATOMIC);	if(!rc)		goto fail_malloc_rc;	rc->active_entry = (int*)kmalloc(nr_areas * sizeof(int), GFP_ATOMIC);	if(!rc->active_entry)		goto fail_malloc_active_entry;	memset(rc->active_entry, 0, nr_areas * sizeof(int));	rc->areas = (debug_entry_t **) kmalloc(nr_areas *						sizeof(debug_entry_t *),						GFP_ATOMIC);	if (!rc->areas)		goto fail_malloc_areas;	for (i = 0; i < nr_areas; i++) {		rc->areas[i] = (debug_entry_t *) __get_free_pages(GFP_ATOMIC,								page_order);		if (!rc->areas[i]) {			for (i--; i >= 0; i--) {				free_pages((unsigned long) rc->areas[i],						page_order);			}			goto fail_malloc_areas2;		} else {			memset(rc->areas[i], 0, PAGE_SIZE << page_order);		}	}	/* initialize members */	spin_lock_init(&rc->lock);	rc->page_order  = page_order;	rc->nr_areas    = nr_areas;	rc->active_area = 0;	rc->level       = DEBUG_DEFAULT_LEVEL;	rc->buf_size    = buf_size;	rc->entry_size  = sizeof(debug_entry_t) + buf_size;	strlcpy(rc->name, name, sizeof(rc->name));	memset(rc->views, 0, DEBUG_MAX_VIEWS * sizeof(struct debug_view *));#ifdef CONFIG_PROC_FS	memset(rc->proc_entries, 0 ,DEBUG_MAX_VIEWS *		sizeof(struct proc_dir_entry*));#endif /* CONFIG_PROC_FS */	atomic_set(&(rc->ref_count), 0);	return rc;fail_malloc_areas2:	kfree(rc->areas);fail_malloc_areas:	kfree(rc->active_entry);fail_malloc_active_entry:	kfree(rc);fail_malloc_rc:	return NULL;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/66a464dbc8e0345b6f972b92bf1118e043d7c987/debug.c/clean/arch/s390/kernel/debug.c