Lines Matching refs:OP_DRIVER_BASE
207 if (mkdir(OP_DRIVER_BASE, 0755)) {
209 fprintf(stderr, "Cannot create directory "OP_DRIVER_BASE": %s\n",
215 if (access(OP_DRIVER_BASE"/stats", F_OK)) {
216 if (system("mount -t oprofilefs nodev "OP_DRIVER_BASE)) {
224 int fd = open(OP_DRIVER_BASE "/cpu_type", O_RDONLY);
226 fprintf(stderr, OP_DRIVER_BASE "/cpu_type: %s\n",
235 fprintf(stderr, OP_DRIVER_BASE "/cpu_type: %s\n",
250 snprintf(buf, sizeof(buf), OP_DRIVER_BASE"/%d", max_events);
424 snprintf(fullname, 512, OP_DRIVER_BASE"/%d/%s", counter, file);
427 snprintf(fullname, 512, OP_DRIVER_BASE"/%s", file);
452 printf("Driver directory: %s\n", OP_DRIVER_BASE);
455 sprintf(fullname, OP_DRIVER_BASE"/%d/enabled", i);
461 sprintf(fullname, OP_DRIVER_BASE"/%d/event", i);
466 sprintf(fullname, OP_DRIVER_BASE"/%d/count", i);
487 num = read_num(OP_DRIVER_BASE"/enable");
491 DIR* dir = opendir(OP_DRIVER_BASE"/stats");
496 strcpy(cpupath, OP_DRIVER_BASE"/stats/");
523 num = read_num(OP_DRIVER_BASE"/backtrace_depth");