perf report: Accept fifos as input file
[deliverable/linux.git] / tools / perf / builtin-annotate.c
index d449645c5ef1e1a6da0a339625e7244be5c961c5..214ba7f9f57759afe6aaa08720b045681d467cdd 100644 (file)
@@ -215,7 +215,7 @@ static int __cmd_annotate(struct perf_annotate *ann)
        }
 
        if (total_nr_samples == 0) {
-               ui__warning("The %s file has no samples!\n", ann->input_name);
+               ui__warning("The %s file has no samples!\n", session->filename);
                goto out_delete;
        }
 out_delete:
@@ -250,7 +250,6 @@ int cmd_annotate(int argc, const char **argv, const char *prefix __used)
                        .ordered_samples = true,
                        .ordering_requires_timestamps = true,
                },
-               .input_name = "perf.data",
        };
        const struct option options[] = {
        OPT_STRING('i', "input", &annotate.input_name, "file",
This page took 0.050406 seconds and 5 git commands to generate.