Lines Matching full:areas
34 #define ALL_AREAS 0 /* copy all debug areas */
35 #define NO_AREAS 1 /* copy no debug areas */
174 * - Debug areas are implemented as a threedimensonal array:
175 * areas[areanumber][pagenumber][pageoffset]
180 debug_entry_t ***areas; in debug_areas_alloc() local
183 areas = kmalloc_array(nr_areas, sizeof(debug_entry_t **), GFP_KERNEL); in debug_areas_alloc()
184 if (!areas) in debug_areas_alloc()
188 areas[i] = kmalloc_array(pages_per_area, in debug_areas_alloc()
191 if (!areas[i]) in debug_areas_alloc()
194 areas[i][j] = kzalloc(PAGE_SIZE, GFP_KERNEL); in debug_areas_alloc()
195 if (!areas[i][j]) { in debug_areas_alloc()
197 kfree(areas[i][j]); in debug_areas_alloc()
198 kfree(areas[i]); in debug_areas_alloc()
203 return areas; in debug_areas_alloc()
208 kfree(areas[i][j]); in debug_areas_alloc()
209 kfree(areas[i]); in debug_areas_alloc()
211 kfree(areas); in debug_areas_alloc()
237 rc->areas = debug_areas_alloc(pages_per_area, nr_areas); in debug_info_alloc()
238 if (!rc->areas) in debug_info_alloc()
241 rc->areas = NULL; in debug_info_alloc()
271 * - free all debug areas
277 if (!db_info->areas) in debug_areas_free()
281 kfree(db_info->areas[i][j]); in debug_areas_free()
282 kfree(db_info->areas[i]); in debug_areas_free()
284 kfree(db_info->areas); in debug_areas_free()
285 db_info->areas = NULL; in debug_areas_free()
331 /* get a consistent copy of the debug areas */ in debug_info_copy()
352 memcpy(rc->areas[i][j], in->areas[i][j], PAGE_SIZE); in debug_info_copy()
398 if (!id_snap->areas) /* this is true, if we have a prolog only view */ in debug_format_entry()
400 act_entry = (debug_entry_t *) ((char *)id_snap->areas[p_info->act_area] in debug_format_entry()
429 if (!id->areas) in debug_next_entry()
550 /* Make snapshot of current debug areas to get it consistent. */ in debug_open()
551 /* To copy all the areas is only needed, if we have a view which */ in debug_open()
552 /* formats the debug areas. */ in debug_open()
632 * @nr_areas: Number of debug areas
675 * @nr_areas: Number of debug areas
699 * @nr_areas: Number of debug areas
724 id->areas = NULL; in debug_register_static()
739 copy->areas = NULL; in debug_register_static()
792 * - set area size (number of pages) and number of areas
880 return (debug_entry_t *) (((char *) id->areas[id->active_area] in get_active_entry()
885 /* Swap debug areas of a and b. */
890 swap(a->areas, b->areas); in debug_areas_swap()
901 if (!src->areas || !dest->areas) in debug_events_append()
1025 if (!debug_active || !id->areas) in debug_event_common()
1058 if (!debug_active || !id->areas) in debug_exception_common()
1106 if (!debug_active || !id->areas) in __debug_sprintf_event()
1141 if (!debug_active || !id->areas) in __debug_sprintf_exception()
1398 * flushes debug areas
1405 if (!id || !id->areas) in debug_flush()
1414 memset(id->areas[i][j], 0, PAGE_SIZE); in debug_flush()
1420 memset(id->areas[area][i], 0, PAGE_SIZE); in debug_flush()
1426 * view function: flushes debug areas