Lines Matching defs:areas
36 #define ALL_AREAS 0 /* copy all debug areas */
37 #define NO_AREAS 1 /* copy no debug areas */
250 * Apply level to static debug areas, delay buffer size changes until
262 * - Debug areas are implemented as a threedimensonal array:
263 * areas[areanumber][pagenumber][pageoffset]
268 debug_entry_t ***areas;
271 areas = kmalloc_objs(debug_entry_t **, nr_areas);
272 if (!areas)
276 areas[i] = kmalloc_objs(debug_entry_t *, pages_per_area,
278 if (!areas[i])
281 areas[i][j] = kzalloc(PAGE_SIZE, GFP_KERNEL);
282 if (!areas[i][j]) {
284 kfree(areas[i][j]);
285 kfree(areas[i]);
290 return areas;
295 kfree(areas[i][j]);
296 kfree(areas[i]);
298 kfree(areas);
324 rc->areas = debug_areas_alloc(pages_per_area, nr_areas);
325 if (!rc->areas)
328 rc->areas = NULL;
358 * - free all debug areas
364 if (!db_info->areas)
368 kfree(db_info->areas[i][j]);
369 kfree(db_info->areas[i]);
371 kfree(db_info->areas);
372 db_info->areas = NULL;
419 /* get a consistent copy of the debug areas */
440 memcpy(rc->areas[i][j], in->areas[i][j], PAGE_SIZE);
491 if (!id_snap->areas) /* this is true, if we have a prolog only view */
493 act_entry = (debug_entry_t *) ((char *)id_snap->areas[p_info->act_area]
532 if (!id->areas)
586 if (!id->areas)
710 * Make snapshot of current debug areas to get it consistent.
711 * To copy all the areas is only needed, if we have a view which
712 * formats the debug areas.
878 * @nr_areas: Number of debug areas
921 * @nr_areas: Number of debug areas
945 * @nr_areas: Number of debug areas
971 id->areas = NULL;
986 copy->areas = NULL;
1039 * - set area size (number of pages) and number of areas
1135 return (debug_entry_t *) (((char *) id->areas[id->active_area]
1140 /* Swap debug areas of a and b. */
1145 swap(a->areas, b->areas);
1156 if (!src->areas || !dest->areas)
1278 if (!debug_active || !id->areas)
1311 if (!debug_active || !id->areas)
1359 if (!debug_active || !id->areas)
1394 if (!debug_active || !id->areas)
1648 * flushes debug areas
1655 if (!id || !id->areas)
1664 memset(id->areas[i][j], 0, PAGE_SIZE);
1670 memset(id->areas[area][i], 0, PAGE_SIZE);
1676 * view function: flushes debug areas