Lines Matching full:areas

33 #define ALL_AREAS 0 /* copy all debug areas */
34 #define NO_AREAS 1 /* copy no debug areas */
172 * - Debug areas are implemented as a threedimensonal array:
173 * areas[areanumber][pagenumber][pageoffset]
178 debug_entry_t ***areas; in debug_areas_alloc() local
181 areas = kmalloc_array(nr_areas, sizeof(debug_entry_t **), GFP_KERNEL); in debug_areas_alloc()
182 if (!areas) in debug_areas_alloc()
186 areas[i] = kmalloc_array(pages_per_area, in debug_areas_alloc()
189 if (!areas[i]) in debug_areas_alloc()
192 areas[i][j] = kzalloc(PAGE_SIZE, GFP_KERNEL); in debug_areas_alloc()
193 if (!areas[i][j]) { in debug_areas_alloc()
195 kfree(areas[i][j]); in debug_areas_alloc()
196 kfree(areas[i]); in debug_areas_alloc()
201 return areas; in debug_areas_alloc()
206 kfree(areas[i][j]); in debug_areas_alloc()
207 kfree(areas[i]); in debug_areas_alloc()
209 kfree(areas); in debug_areas_alloc()
235 rc->areas = debug_areas_alloc(pages_per_area, nr_areas); in debug_info_alloc()
236 if (!rc->areas) in debug_info_alloc()
239 rc->areas = NULL; in debug_info_alloc()
269 * - free all debug areas
275 if (!db_info->areas) in debug_areas_free()
279 kfree(db_info->areas[i][j]); in debug_areas_free()
280 kfree(db_info->areas[i]); in debug_areas_free()
282 kfree(db_info->areas); in debug_areas_free()
283 db_info->areas = NULL; in debug_areas_free()
347 /* get a consistent copy of the debug areas */ in debug_info_copy()
368 memcpy(rc->areas[i][j], in->areas[i][j], PAGE_SIZE); in debug_info_copy()
431 if (!id_snap->areas) /* this is true, if we have a prolog only view */ in debug_format_entry()
433 act_entry = (debug_entry_t *) ((char *)id_snap->areas[p_info->act_area] in debug_format_entry()
462 if (!id->areas) in debug_next_entry()
583 /* Make snapshot of current debug areas to get it consistent. */ in debug_open()
584 /* To copy all the areas is only needed, if we have a view which */ in debug_open()
585 /* formats the debug areas. */ in debug_open()
640 * @nr_areas: Number of debug areas
686 * @nr_areas: Number of debug areas
725 * - set area size (number of pages) and number of areas
748 id->areas = new_areas; in debug_set_size()
819 return (debug_entry_t *) (((char *) id->areas[id->active_area] in get_active_entry()
939 if (!debug_active || !id->areas) in debug_event_common()
972 if (!debug_active || !id->areas) in debug_exception_common()
1020 if (!debug_active || !id->areas) in __debug_sprintf_event()
1055 if (!debug_active || !id->areas) in __debug_sprintf_exception()
1311 * flushes debug areas
1318 if (!id || !id->areas) in debug_flush()
1327 memset(id->areas[i][j], 0, PAGE_SIZE); in debug_flush()
1333 memset(id->areas[area][i], 0, PAGE_SIZE); in debug_flush()
1339 * view function: flushes debug areas