Lines Matching full:areas

34 #define ALL_AREAS 0 /* copy all debug areas */
35 #define NO_AREAS 1 /* copy no debug areas */
175 * - Debug areas are implemented as a threedimensonal array:
176 * areas[areanumber][pagenumber][pageoffset]
181 debug_entry_t ***areas; in debug_areas_alloc() local
184 areas = kmalloc_array(nr_areas, sizeof(debug_entry_t **), GFP_KERNEL); in debug_areas_alloc()
185 if (!areas) in debug_areas_alloc()
189 areas[i] = kmalloc_array(pages_per_area, in debug_areas_alloc()
192 if (!areas[i]) in debug_areas_alloc()
195 areas[i][j] = kzalloc(PAGE_SIZE, GFP_KERNEL); in debug_areas_alloc()
196 if (!areas[i][j]) { in debug_areas_alloc()
198 kfree(areas[i][j]); in debug_areas_alloc()
199 kfree(areas[i]); in debug_areas_alloc()
204 return areas; in debug_areas_alloc()
209 kfree(areas[i][j]); in debug_areas_alloc()
210 kfree(areas[i]); in debug_areas_alloc()
212 kfree(areas); in debug_areas_alloc()
238 rc->areas = debug_areas_alloc(pages_per_area, nr_areas); in debug_info_alloc()
239 if (!rc->areas) in debug_info_alloc()
242 rc->areas = NULL; in debug_info_alloc()
272 * - free all debug areas
278 if (!db_info->areas) in debug_areas_free()
282 kfree(db_info->areas[i][j]); in debug_areas_free()
283 kfree(db_info->areas[i]); in debug_areas_free()
285 kfree(db_info->areas); in debug_areas_free()
286 db_info->areas = NULL; in debug_areas_free()
332 /* get a consistent copy of the debug areas */ in debug_info_copy()
353 memcpy(rc->areas[i][j], in->areas[i][j], PAGE_SIZE); in debug_info_copy()
399 if (!id_snap->areas) /* this is true, if we have a prolog only view */ in debug_format_entry()
401 act_entry = (debug_entry_t *) ((char *)id_snap->areas[p_info->act_area] in debug_format_entry()
430 if (!id->areas) in debug_next_entry()
551 /* Make snapshot of current debug areas to get it consistent. */ in debug_open()
552 /* To copy all the areas is only needed, if we have a view which */ in debug_open()
553 /* formats the debug areas. */ in debug_open()
633 * @nr_areas: Number of debug areas
676 * @nr_areas: Number of debug areas
700 * @nr_areas: Number of debug areas
725 id->areas = NULL; in debug_register_static()
740 copy->areas = NULL; in debug_register_static()
793 * - set area size (number of pages) and number of areas
881 return (debug_entry_t *) (((char *) id->areas[id->active_area] in get_active_entry()
886 /* Swap debug areas of a and b. */
891 swap(a->areas, b->areas); in debug_areas_swap()
902 if (!src->areas || !dest->areas) in debug_events_append()
1026 if (!debug_active || !id->areas) in debug_event_common()
1059 if (!debug_active || !id->areas) in debug_exception_common()
1107 if (!debug_active || !id->areas) in __debug_sprintf_event()
1142 if (!debug_active || !id->areas) in __debug_sprintf_exception()
1399 * flushes debug areas
1406 if (!id || !id->areas) in debug_flush()
1415 memset(id->areas[i][j], 0, PAGE_SIZE); in debug_flush()
1421 memset(id->areas[area][i], 0, PAGE_SIZE); in debug_flush()
1427 * view function: flushes debug areas