Lines Matching defs:slabinfo
8 * gcc -o slabinfo slabinfo.c
26 struct slabinfo {
44 } slabinfo[MAX_SLABS];
49 struct slabinfo *slab;
102 printf("slabinfo 5/7/2007. (c) 2007 sgi.\n\n"
103 "slabinfo [-ahnpvtsz] [-d debugopts] [slab-regexp]\n"
181 static void set_obj(struct slabinfo *s, const char *name, int n)
195 static unsigned long read_slab_obj(struct slabinfo *s, const char *name)
275 static void slab_validate(struct slabinfo *s)
283 static void slab_shrink(struct slabinfo *s)
305 static struct aliasinfo *find_one_alias(struct slabinfo *find)
321 static unsigned long slab_size(struct slabinfo *s)
326 static unsigned long slab_activity(struct slabinfo *s)
332 static void slab_numa(struct slabinfo *s, int mode)
377 static void show_tracking(struct slabinfo *s)
395 static void ops(struct slabinfo *s)
415 static void slab_stats(struct slabinfo *s)
480 static void report(struct slabinfo *s)
521 static void slabcache(struct slabinfo *s)
645 static int slab_empty(struct slabinfo *s)
660 static void slab_debug(struct slabinfo *s)
722 struct slabinfo *s;
776 for (s = slabinfo; s < slabinfo + slabs; s++) {
981 struct slabinfo *s1,*s2;
983 for (s1 = slabinfo; s1 < slabinfo + slabs; s1++) {
984 for (s2 = s1 + 1; s2 < slabinfo + slabs; s2++) {
998 struct slabinfo t;
1000 memcpy(&t, s1, sizeof(struct slabinfo));
1001 memcpy(s1, s2, sizeof(struct slabinfo));
1002 memcpy(s2, &t, sizeof(struct slabinfo));
1036 struct slabinfo *s;
1040 for (s = slabinfo; s < slabinfo + slabs; s++)
1046 if (s == slabinfo + slabs)
1084 struct slabinfo *s;
1087 for (s = slabinfo; s < slabinfo + slabs; s++) {
1114 struct slabinfo *slab = slabinfo;
1203 slabs = slab - slabinfo;
1214 struct slabinfo *slab;
1216 for (slab = slabinfo; slab < slabinfo + slabs; slab++) {