Lines Matching defs:kernel

74 static char *kernel;
87 "\t[kernel [core]]\n", getprogname());
101 * If there's a kernel image right here in the crash directory, then
102 * use it. The kernel image is either called kernel.<nr> or is in a
103 * subdirectory kernel.<nr> and called kernel. The latter allows us
106 snprintf(path, sizeof(path), "%s/kernel.%d", crashdir, nr);
109 kernel = strdup(path);
113 snprintf(path, sizeof(path), "%s/kernel.%d/kernel",
116 kernel = strdup(path);
123 * No kernel image here. Parse the dump header. The kernel object
124 * directory can be found there and we probably have the kernel
125 * image still in it. The object directory may also have a kernel
126 * with debugging info (called kernel.debug). If we have a debug
127 * kernel, use it.
142 l = snprintf(path, sizeof(path), "%s/kernel.debug", s);
149 kernel = strdup(path);
169 * The initial kernel has just been loaded. Start the
234 printf("\nUnread portion of the kernel message buffer:\n");
371 warnx("option %c: invalid kernel dump number",
413 kernel = strdup(argv[optind++]);
434 } else if (vmcore == NULL && kernel == NULL) {
436 kernel = strdup(getbootfile());
444 if (kernel != NULL)
445 warnx("kernel image: %s", kernel);
448 /* A remote target requires an explicit kernel argument. */
449 if (remote != NULL && kernel == NULL) {
450 warnx("remote debugging requires a kernel");
455 /* If we don't have a kernel image yet, try to find one. */
456 if (kernel == NULL) {
460 if (kernel == NULL)
461 errx(1, "couldn't find a suitable kernel image");
463 warnx("kernel image: %s", kernel);
465 add_arg(&args, kernel);