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
1286 pmcstat_interned_string path, uintfptr_t entryaddr)
1290 if ((image = pmcstat_image_from_path(path, 0)) == NULL) {
1319 pmcstat_string_unintern(path));
1770 pmcstat_open_log(const char *path, int mode)
1782 * If 'path' is "-" then open one of stdin or stdout depending
1785 * If 'path' contains a ':' and does not start with a '/' or '.',
1789 * Otherwise, treat 'path' as a file name and open that.
1791 if (path[0] == '-' && path[1] == '\0')
1793 else if (path[0] != '/' &&
1794 path[0] != '.' && strchr(path, ':') != NULL) {
1796 p = strrchr(path, ':');
1797 hlen = p - path;
1798 if (p == path || hlen >= sizeof(hostname)) {
1804 (void) strncpy(hostname, path, hlen);
1851 } else if ((fd = open(path, mode == PMCSTAT_OPEN_FOR_READ ?
1858 errx(EX_OSERR, "ERROR: Cannot open \"%s\" for %s: %s.", path,