Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf data: Rename directory "header" file to "data"

In preparation to support a single file directory format, rename "header"
to "data" because "header" is a mis-leading name when there is only 1 file.
Note, in the multi-file case, the "header" file also contains data.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Jiri Olsa <jolsa@kernel.org>
Link: http://lore.kernel.org/lkml/20191004083121.12182-4-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Adrian Hunter and committed by
Arnaldo Carvalho de Melo
9b70b9db 3dedec4f

+2 -2
+1 -1
tools/perf/util/data.c
··· 306 306 * So far we open only the header, so we can read the data version and 307 307 * layout. 308 308 */ 309 - if (asprintf(&data->file.path, "%s/header", data->path) < 0) 309 + if (asprintf(&data->file.path, "%s/data", data->path) < 0) 310 310 return -1; 311 311 312 312 if (perf_data__is_write(data) &&
+1 -1
tools/perf/util/util.c
··· 185 185 int rm_rf_perf_data(const char *path) 186 186 { 187 187 const char *pat[] = { 188 - "header", 188 + "data", 189 189 "data.*", 190 190 NULL, 191 191 };