Lines Matching refs:slab
54 struct slabinfo *slab; member
337 if (a->slab == find && in find_one_alias()
1107 a->slab = s; in link_slabs()
1126 if (!show_single_ref && a->slab->refs == 1) in alias()
1131 if (strcmp(a->slab->name, active) == 0) { in alias()
1136 printf("\n%-12s <- %s", a->slab->name, a->name); in alias()
1137 active = a->slab->name; in alias()
1140 printf("%-15s -> %s\n", a->name, a->slab->name); in alias()
1170 static int slab_mismatch(char *slab) in slab_mismatch() argument
1172 return regexec(&pattern, slab, 0, NULL, 0); in slab_mismatch()
1179 struct slabinfo *slab = slabinfo; in read_slab_dir() local
1210 fatal("Unable to access slab %s\n", slab->name); in read_slab_dir()
1211 slab->name = strdup(de->d_name); in read_slab_dir()
1212 slab->alias = 0; in read_slab_dir()
1213 slab->refs = 0; in read_slab_dir()
1214 slab->aliases = get_obj("aliases"); in read_slab_dir()
1215 slab->align = get_obj("align"); in read_slab_dir()
1216 slab->cache_dma = get_obj("cache_dma"); in read_slab_dir()
1217 slab->cpu_slabs = get_obj("cpu_slabs"); in read_slab_dir()
1218 slab->destroy_by_rcu = get_obj("destroy_by_rcu"); in read_slab_dir()
1219 slab->hwcache_align = get_obj("hwcache_align"); in read_slab_dir()
1220 slab->object_size = get_obj("object_size"); in read_slab_dir()
1221 slab->objects = get_obj("objects"); in read_slab_dir()
1222 slab->objects_partial = get_obj("objects_partial"); in read_slab_dir()
1223 slab->objects_total = get_obj("objects_total"); in read_slab_dir()
1224 slab->objs_per_slab = get_obj("objs_per_slab"); in read_slab_dir()
1225 slab->order = get_obj("order"); in read_slab_dir()
1226 slab->partial = get_obj("partial"); in read_slab_dir()
1227 slab->partial = get_obj_and_str("partial", &t); in read_slab_dir()
1228 decode_numa_list(slab->numa_partial, t); in read_slab_dir()
1230 slab->poison = get_obj("poison"); in read_slab_dir()
1231 slab->reclaim_account = get_obj("reclaim_account"); in read_slab_dir()
1232 slab->red_zone = get_obj("red_zone"); in read_slab_dir()
1233 slab->sanity_checks = get_obj("sanity_checks"); in read_slab_dir()
1234 slab->slab_size = get_obj("slab_size"); in read_slab_dir()
1235 slab->slabs = get_obj_and_str("slabs", &t); in read_slab_dir()
1236 decode_numa_list(slab->numa, t); in read_slab_dir()
1238 slab->store_user = get_obj("store_user"); in read_slab_dir()
1239 slab->trace = get_obj("trace"); in read_slab_dir()
1240 slab->alloc_fastpath = get_obj("alloc_fastpath"); in read_slab_dir()
1241 slab->alloc_slowpath = get_obj("alloc_slowpath"); in read_slab_dir()
1242 slab->free_fastpath = get_obj("free_fastpath"); in read_slab_dir()
1243 slab->free_slowpath = get_obj("free_slowpath"); in read_slab_dir()
1244 slab->free_frozen= get_obj("free_frozen"); in read_slab_dir()
1245 slab->free_add_partial = get_obj("free_add_partial"); in read_slab_dir()
1246 slab->free_remove_partial = get_obj("free_remove_partial"); in read_slab_dir()
1247 slab->alloc_from_partial = get_obj("alloc_from_partial"); in read_slab_dir()
1248 slab->alloc_slab = get_obj("alloc_slab"); in read_slab_dir()
1249 slab->alloc_refill = get_obj("alloc_refill"); in read_slab_dir()
1250 slab->free_slab = get_obj("free_slab"); in read_slab_dir()
1251 slab->cpuslab_flush = get_obj("cpuslab_flush"); in read_slab_dir()
1252 slab->deactivate_full = get_obj("deactivate_full"); in read_slab_dir()
1253 slab->deactivate_empty = get_obj("deactivate_empty"); in read_slab_dir()
1254 slab->deactivate_to_head = get_obj("deactivate_to_head"); in read_slab_dir()
1255 slab->deactivate_to_tail = get_obj("deactivate_to_tail"); in read_slab_dir()
1256 slab->deactivate_remote_frees = get_obj("deactivate_remote_frees"); in read_slab_dir()
1257 slab->order_fallback = get_obj("order_fallback"); in read_slab_dir()
1258 slab->cmpxchg_double_cpu_fail = get_obj("cmpxchg_double_cpu_fail"); in read_slab_dir()
1259 slab->cmpxchg_double_fail = get_obj("cmpxchg_double_fail"); in read_slab_dir()
1260 slab->cpu_partial_alloc = get_obj("cpu_partial_alloc"); in read_slab_dir()
1261 slab->cpu_partial_free = get_obj("cpu_partial_free"); in read_slab_dir()
1262 slab->alloc_node_mismatch = get_obj("alloc_node_mismatch"); in read_slab_dir()
1263 slab->deactivate_bypass = get_obj("deactivate_bypass"); in read_slab_dir()
1265 if (slab->name[0] == ':') in read_slab_dir()
1267 slab++; in read_slab_dir()
1274 slabs = slab - slabinfo; in read_slab_dir()
1285 struct slabinfo *slab; in output_slabs() local
1288 for (slab = slabinfo; (slab < slabinfo + slabs) && in output_slabs()
1289 lines != 0; slab++) { in output_slabs()
1291 if (slab->alias) in output_slabs()
1298 slab_numa(slab, 0); in output_slabs()
1300 show_tracking(slab); in output_slabs()
1302 slab_validate(slab); in output_slabs()
1304 slab_shrink(slab); in output_slabs()
1306 slab_debug(slab); in output_slabs()
1308 ops(slab); in output_slabs()
1310 slabcache(slab); in output_slabs()
1312 report(slab); in output_slabs()