parse-events.c (ead5d1f4d877e92c051e1a1ade623d0d30e71619) parse-events.c (943b69ac1884d8e0260ee653e696456810d7c6e3)
1// SPDX-License-Identifier: GPL-2.0
2#include <linux/hw_breakpoint.h>
3#include <linux/err.h>
4#include <linux/zalloc.h>
5#include <dirent.h>
6#include <errno.h>
7#include <sys/ioctl.h>
8#include <sys/types.h>

--- 23 unchanged lines hidden (view full) ---

32#include "thread_map.h"
33#include "probe-file.h"
34#include "asm/bug.h"
35#include "util/parse-branch-options.h"
36#include "metricgroup.h"
37#include "util/evsel_config.h"
38#include "util/event.h"
39#include "util/pfm.h"
1// SPDX-License-Identifier: GPL-2.0
2#include <linux/hw_breakpoint.h>
3#include <linux/err.h>
4#include <linux/zalloc.h>
5#include <dirent.h>
6#include <errno.h>
7#include <sys/ioctl.h>
8#include <sys/types.h>

--- 23 unchanged lines hidden (view full) ---

32#include "thread_map.h"
33#include "probe-file.h"
34#include "asm/bug.h"
35#include "util/parse-branch-options.h"
36#include "metricgroup.h"
37#include "util/evsel_config.h"
38#include "util/event.h"
39#include "util/pfm.h"
40#include "perf.h"
40
41#define MAX_NAME_LEN 100
42
43#ifdef PARSER_DEBUG
44extern int parse_events_debug;
45#endif
46int parse_events_parse(void *parse_state, void *scanner);
47static int get_config_terms(struct list_head *head_config,

--- 1741 unchanged lines hidden (view full) ---

1789 int weak = 0;
1790
1791 memset(mod, 0, sizeof(*mod));
1792
1793 while (*str) {
1794 if (*str == 'u') {
1795 if (!exclude)
1796 exclude = eu = ek = eh = 1;
41
42#define MAX_NAME_LEN 100
43
44#ifdef PARSER_DEBUG
45extern int parse_events_debug;
46#endif
47int parse_events_parse(void *parse_state, void *scanner);
48static int get_config_terms(struct list_head *head_config,

--- 1741 unchanged lines hidden (view full) ---

1790 int weak = 0;
1791
1792 memset(mod, 0, sizeof(*mod));
1793
1794 while (*str) {
1795 if (*str == 'u') {
1796 if (!exclude)
1797 exclude = eu = ek = eh = 1;
1798 if (!exclude_GH && !perf_guest)
1799 eG = 1;
1797 eu = 0;
1798 } else if (*str == 'k') {
1799 if (!exclude)
1800 exclude = eu = ek = eh = 1;
1801 ek = 0;
1802 } else if (*str == 'h') {
1803 if (!exclude)
1804 exclude = eu = ek = eh = 1;

--- 1339 unchanged lines hidden ---
1800 eu = 0;
1801 } else if (*str == 'k') {
1802 if (!exclude)
1803 exclude = eu = ek = eh = 1;
1804 ek = 0;
1805 } else if (*str == 'h') {
1806 if (!exclude)
1807 exclude = eu = ek = eh = 1;

--- 1339 unchanged lines hidden ---