Lines Matching refs: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;
184 areas = kmalloc_array(nr_areas, sizeof(debug_entry_t **), GFP_KERNEL);
185 if (!areas)
189 areas[i] = kmalloc_array(pages_per_area,
192 if (!areas[i])
195 areas[i][j] = kzalloc(PAGE_SIZE, GFP_KERNEL);
196 if (!areas[i][j]) {
198 kfree(areas[i][j]);
199 kfree(areas[i]);
204 return areas;
209 kfree(areas[i][j]);
210 kfree(areas[i]);
212 kfree(areas);
238 rc->areas = debug_areas_alloc(pages_per_area, nr_areas);
239 if (!rc->areas)
242 rc->areas = NULL;
272 * - free all debug areas
278 if (!db_info->areas)
282 kfree(db_info->areas[i][j]);
283 kfree(db_info->areas[i]);
285 kfree(db_info->areas);
286 db_info->areas = NULL;
332 /* get a consistent copy of the debug areas */
353 memcpy(rc->areas[i][j], in->areas[i][j], PAGE_SIZE);
399 if (!id_snap->areas) /* this is true, if we have a prolog only view */
401 act_entry = (debug_entry_t *) ((char *)id_snap->areas[p_info->act_area]
430 if (!id->areas)
551 /* Make snapshot of current debug areas to get it consistent. */
552 /* To copy all the areas is only needed, if we have a view which */
553 /* formats the debug areas. */
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;
740 copy->areas = NULL;
793 * - set area size (number of pages) and number of areas
881 return (debug_entry_t *) (((char *) id->areas[id->active_area]
886 /* Swap debug areas of a and b. */
891 swap(a->areas, b->areas);
902 if (!src->areas || !dest->areas)
1027 if (!debug_active || !id->areas)
1060 if (!debug_active || !id->areas)
1108 if (!debug_active || !id->areas)
1143 if (!debug_active || !id->areas)
1400 * flushes debug areas
1407 if (!id || !id->areas)
1416 memset(id->areas[i][j], 0, PAGE_SIZE);
1422 memset(id->areas[area][i], 0, PAGE_SIZE);
1428 * view function: flushes debug areas