perf tools: Check vmlinux/kallsyms arguments in all tools
[linux-2.6-microblaze.git] / tools / perf / builtin-c2c.c
index a192014..b5c67ef 100644 (file)
@@ -2768,6 +2768,10 @@ static int perf_c2c__report(int argc, const char **argv)
        if (c2c.stats_only)
                c2c.use_stdio = true;
 
+       err = symbol__validate_sym_arguments();
+       if (err)
+               goto out;
+
        if (!input_name || !strlen(input_name))
                input_name = "perf.data";