diff options
Diffstat (limited to 'simpleperf/cmd_stat.cpp')
-rw-r--r-- | simpleperf/cmd_stat.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/simpleperf/cmd_stat.cpp b/simpleperf/cmd_stat.cpp index 228b4edc..488e731b 100644 --- a/simpleperf/cmd_stat.cpp +++ b/simpleperf/cmd_stat.cpp @@ -101,6 +101,10 @@ class StatCommand : public Command { }; bool StatCommand::Run(const std::vector<std::string>& args) { + if (!CheckPerfEventLimit()) { + return false; + } + // 1. Parse options, and use default measured event types if not given. std::vector<std::string> workload_args; if (!ParseOptions(args, &workload_args)) { |