Lines Matching defs:path
423 const char *path;
426 path = pmcstat_string_unintern(image->pi_execpath);
427 assert(path != NULL);
431 "ERROR: a.out kernel modules are unsupported \"%s\"", path);
434 args.pa_fsroot, path);
440 path);
622 const char *path, *elfbase;
642 path = pmcstat_string_unintern(image->pi_execpath);
643 assert(path != NULL);
651 args.pa_fsroot, args.pa_kernel, path);
654 args.pa_fsroot, path);
798 * Locate an image descriptor given an interned path, adding a fresh
982 /* Old kernel symbol path. */
1297 pmcstat_interned_string path, uintfptr_t entryaddr)
1301 if ((image = pmcstat_image_from_path(path, 0)) == NULL) {
1330 pmcstat_string_unintern(path));
1783 pmcstat_open_log(const char *path, int mode)
1795 * If 'path' is "-" then open one of stdin or stdout depending
1798 * If 'path' contains a ':' and does not start with a '/' or '.',
1802 * Otherwise, treat 'path' as a file name and open that.
1804 if (path[0] == '-' && path[1] == '\0')
1806 else if (path[0] != '/' &&
1807 path[0] != '.' && strchr(path, ':') != NULL) {
1809 p = strrchr(path, ':');
1810 hlen = p - path;
1811 if (p == path || hlen >= sizeof(hostname)) {
1817 (void) strncpy(hostname, path, hlen);
1864 } else if ((fd = open(path, mode == PMCSTAT_OPEN_FOR_READ ?
1871 errx(EX_OSERR, "ERROR: Cannot open \"%s\" for %s: %s.", path,