Lines Matching refs:name

29 	char *name;
52 char *name;
156 static unsigned long read_obj(const char *name)
158 FILE *f = fopen(name, "r");
178 static unsigned long get_obj(const char *name)
180 if (!read_obj(name))
186 static unsigned long get_obj_and_str(const char *name, char **x)
193 if (!read_obj(name)) {
205 static void set_obj(struct slabinfo *s, const char *name, int n)
210 snprintf(x, 100, "%s/%s", s->name, name);
219 static unsigned long read_slab_obj(struct slabinfo *s, const char *name)
225 snprintf(x, 100, "%s/%s", s->name, name);
238 static unsigned long read_debug_slab_obj(struct slabinfo *s, const char *name)
244 snprintf(x, 128, "/sys/kernel/debug/slab/%s/%s", s->name, name);
321 if (strcmp(s->name, "*") == 0)
329 if (strcmp(s->name, "*") == 0)
358 (!best || strlen(best->name) < strlen(a->name))) {
360 if (strncmp(a->name,"kmall", 5) == 0)
387 if (strcmp(s->name, "*") == 0)
391 printf("\n%s: No NUMA information available.\n", s->name);
407 printf("%-21s ", mode ? "All slabs" : s->name);
430 printf("\n%s: Kernel object allocation\n", s->name);
439 printf("\n%s: Kernel object freeing\n", s->name);
452 if (strcmp(s->name, "*") == 0)
456 printf("\n%s: kmem_cache operations\n", s->name);
460 printf("\n%s has no kmem_cache operations\n", s->name);
556 if (strcmp(s->name, "*") == 0)
560 s->name, s->aliases, s->order, s->objects);
602 if (strcmp(s->name, "*") == 0)
657 s->name, s->objects,
665 s->name, s->objects, s->object_size, size_str, dist_str,
743 if (strcmp(s->name, "*") == 0)
753 fprintf(stderr, "%s not empty cannot disable sanity checks\n", s->name);
759 fprintf(stderr, "%s not empty cannot enable redzoning\n", s->name);
765 fprintf(stderr, "%s not empty cannot disable redzoning\n", s->name);
771 fprintf(stderr, "%s not empty cannot enable poisoning\n", s->name);
777 fprintf(stderr, "%s not empty cannot disable poisoning\n", s->name);
783 fprintf(stderr, "%s not empty cannot enable tracking\n", s->name);
789 fprintf(stderr, "%s not empty cannot disable tracking\n", s->name);
795 fprintf(stderr, "%s can only enable trace for one slab at a time\n", s->name);
1074 result = strcasecmp(s1->name, s2->name);
1079 result = strcasecmp(s1->name, s2->name);
1084 result = strcasecmp(s1->name, s2->name);
1089 result = strcasecmp(s1->name, s2->name);
1093 result = strcasecmp(s1->name, s2->name);
1117 n1 = a1->name;
1118 n2 = a2->name;
1142 if (strcmp(a->ref, s->name) == 0) {
1167 if (strcmp(a->slab->name, active) == 0) {
1168 printf(" %s", a->name);
1172 printf("\n%-12s <- %s", a->slab->name, a->name);
1173 active = a->slab->name;
1176 printf("%-15s -> %s\n", a->name, a->slab->name);
1189 if (*s->name != ':')
1198 s->name = a->name;
1200 s->name = "*";
1231 alias->name = strdup(de->d_name);
1246 fatal("Unable to access slab %s\n", slab->name);
1247 slab->name = strdup(de->d_name);
1301 if (slab->name[0] == ':')