Commit 9b70b9db authored by Adrian Hunter's avatar Adrian Hunter Committed by Arnaldo Carvalho de Melo

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: default avatarAdrian Hunter <adrian.hunter@intel.com>
Reviewed-by: default avatarJiri Olsa <jolsa@kernel.org>
Link: http://lore.kernel.org/lkml/20191004083121.12182-4-adrian.hunter@intel.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 3dedec4f
...@@ -306,7 +306,7 @@ static int open_dir(struct perf_data *data) ...@@ -306,7 +306,7 @@ static int open_dir(struct perf_data *data)
* So far we open only the header, so we can read the data version and * So far we open only the header, so we can read the data version and
* layout. * layout.
*/ */
if (asprintf(&data->file.path, "%s/header", data->path) < 0) if (asprintf(&data->file.path, "%s/data", data->path) < 0)
return -1; return -1;
if (perf_data__is_write(data) && if (perf_data__is_write(data) &&
......
...@@ -185,7 +185,7 @@ static int rm_rf_depth_pat(const char *path, int depth, const char **pat) ...@@ -185,7 +185,7 @@ static int rm_rf_depth_pat(const char *path, int depth, const char **pat)
int rm_rf_perf_data(const char *path) int rm_rf_perf_data(const char *path)
{ {
const char *pat[] = { const char *pat[] = {
"header", "data",
"data.*", "data.*",
NULL, NULL,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment