Lines Matching full:areas

35 #define ALL_AREAS 0 /* copy all debug areas */
36 #define NO_AREAS 1 /* copy no debug areas */
176 * - Debug areas are implemented as a threedimensonal array:
177 * areas[areanumber][pagenumber][pageoffset]
182 debug_entry_t ***areas; in debug_areas_alloc() local
185 areas = kmalloc_array(nr_areas, sizeof(debug_entry_t **), GFP_KERNEL); in debug_areas_alloc()
186 if (!areas) in debug_areas_alloc()
190 areas[i] = kmalloc_array(pages_per_area, in debug_areas_alloc()
193 if (!areas[i]) in debug_areas_alloc()
196 areas[i][j] = kzalloc(PAGE_SIZE, GFP_KERNEL); in debug_areas_alloc()
197 if (!areas[i][j]) { in debug_areas_alloc()
199 kfree(areas[i][j]); in debug_areas_alloc()
200 kfree(areas[i]); in debug_areas_alloc()
205 return areas; in debug_areas_alloc()
210 kfree(areas[i][j]); in debug_areas_alloc()
211 kfree(areas[i]); in debug_areas_alloc()
213 kfree(areas); in debug_areas_alloc()
239 rc->areas = debug_areas_alloc(pages_per_area, nr_areas); in debug_info_alloc()
240 if (!rc->areas) in debug_info_alloc()
243 rc->areas = NULL; in debug_info_alloc()
273 * - free all debug areas
279 if (!db_info->areas) in debug_areas_free()
283 kfree(db_info->areas[i][j]); in debug_areas_free()
284 kfree(db_info->areas[i]); in debug_areas_free()
286 kfree(db_info->areas); in debug_areas_free()
287 db_info->areas = NULL; in debug_areas_free()
333 /* get a consistent copy of the debug areas */ in debug_info_copy()
354 memcpy(rc->areas[i][j], in->areas[i][j], PAGE_SIZE); in debug_info_copy()
405 if (!id_snap->areas) /* this is true, if we have a prolog only view */ in debug_format_entry()
407 act_entry = (debug_entry_t *) ((char *)id_snap->areas[p_info->act_area] in debug_format_entry()
446 if (!id->areas) in debug_next_entry()
500 if (!id->areas) in debug_prev_entry()
624 * Make snapshot of current debug areas to get it consistent. in debug_file_private_alloc()
625 * To copy all the areas is only needed, if we have a view which in debug_file_private_alloc()
626 * formats the debug areas. in debug_file_private_alloc()
792 * @nr_areas: Number of debug areas
835 * @nr_areas: Number of debug areas
859 * @nr_areas: Number of debug areas
884 id->areas = NULL; in debug_register_static()
899 copy->areas = NULL; in debug_register_static()
952 * - set area size (number of pages) and number of areas
1040 return (debug_entry_t *) (((char *) id->areas[id->active_area] in get_active_entry()
1045 /* Swap debug areas of a and b. */
1050 swap(a->areas, b->areas); in debug_areas_swap()
1061 if (!src->areas || !dest->areas) in debug_events_append()
1185 if (!debug_active || !id->areas) in debug_event_common()
1218 if (!debug_active || !id->areas) in debug_exception_common()
1266 if (!debug_active || !id->areas) in __debug_sprintf_event()
1301 if (!debug_active || !id->areas) in __debug_sprintf_exception()
1558 * flushes debug areas
1565 if (!id || !id->areas) in debug_flush()
1574 memset(id->areas[i][j], 0, PAGE_SIZE); in debug_flush()
1580 memset(id->areas[area][i], 0, PAGE_SIZE); in debug_flush()
1586 * view function: flushes debug areas