Lines Matching refs:file
95 static const char * const DEBUG_NOFILE = "[file not found]";
572 static char *read_file(const char *file, enum errhandling h)
576 static const char *emsg = "Failed to read the %s file";
578 r = tracefs_instance_file_read(NULL, file, &psize);
581 warn(emsg, file);
585 errx(EXIT_FAILURE, emsg, file);
593 static void restore_file(const char *file, char **saved, const char *cur)
596 if (tracefs_instance_file_write(NULL, file, *saved) < 0)
597 warnx("Failed to restore %s to %s!", file, *saved);
599 printf("Restored %s to %s\n", file, *saved);
1331 errx(EXIT_FAILURE, "Failed to read the %s file\n", TR_OPTIONS);
1340 static void write_file(const char *file, const char *cur, const char *new,
1344 static const char *emsg = "Failed to write to the %s file!";
1350 r = tracefs_instance_file_write(NULL, file, new);
1353 warnx(emsg, file);
1357 errx(EXIT_FAILURE, emsg, file);
1361 printf("%s was set to %s\n", file, new);
1416 * the trace_options file and that the wanted setting is different from
1675 "The occurrence of a latency is detected by monitoring the file\n"
1726 "\t\t\tthe trace file to standard output\n\n"
1731 "\t\t\t%ld ms, before reading the trace file. The\n"
1735 "\t\t\tchoose which one we collect from the trace file.\n\n"
1771 "\t\t\tprinting out the trace from the trace file. The default\n"
1778 "-i, --tracefile FILE\tUse FILE as trace file. The default is\n"
1782 "-m, --max-lat FILE\tUse FILE as tracing_max_latency file. The default is\n"