builtin-stat.c (63503dba87acfab49280d3b05df6705a6f327e8a) | builtin-stat.c (0f98b11c616f240b54ee85629ff4d3650c7ccc7d) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * builtin-stat.c 4 * 5 * Builtin stat command: Give a precise performance counters summary 6 * overview about any workload, CPU or specific PID. 7 * 8 * Sample output: --- 1688 unchanged lines hidden (view full) --- 1697 int status = -EINVAL, run_idx; 1698 const char *mode; 1699 FILE *output = stderr; 1700 unsigned int interval, timeout; 1701 const char * const stat_subcommands[] = { "record", "report" }; 1702 1703 setlocale(LC_ALL, ""); 1704 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * builtin-stat.c 4 * 5 * Builtin stat command: Give a precise performance counters summary 6 * overview about any workload, CPU or specific PID. 7 * 8 * Sample output: --- 1688 unchanged lines hidden (view full) --- 1697 int status = -EINVAL, run_idx; 1698 const char *mode; 1699 FILE *output = stderr; 1700 unsigned int interval, timeout; 1701 const char * const stat_subcommands[] = { "record", "report" }; 1702 1703 setlocale(LC_ALL, ""); 1704 |
1705 evsel_list = perf_evlist__new(); | 1705 evsel_list = evlist__new(); |
1706 if (evsel_list == NULL) 1707 return -ENOMEM; 1708 1709 parse_events__shrink_config_terms(); 1710 1711 /* String-parsing callback-based options would segfault when negated */ 1712 set_option_flag(stat_options, 'e', "event", PARSE_OPT_NONEG); 1713 set_option_flag(stat_options, 'M', "metrics", PARSE_OPT_NONEG); --- 310 unchanged lines hidden --- | 1706 if (evsel_list == NULL) 1707 return -ENOMEM; 1708 1709 parse_events__shrink_config_terms(); 1710 1711 /* String-parsing callback-based options would segfault when negated */ 1712 set_option_flag(stat_options, 'e', "event", PARSE_OPT_NONEG); 1713 set_option_flag(stat_options, 'M', "metrics", PARSE_OPT_NONEG); --- 310 unchanged lines hidden --- |