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

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

1709 list = malloc(sizeof(struct list_head));
1710 if (!list)
1711 goto out_err;
1712
1713 INIT_LIST_HEAD(list);
1714
1715 while ((pmu = perf_pmu__scan(pmu)) != NULL) {
1716 struct perf_pmu_alias *alias;
1// SPDX-License-Identifier: GPL-2.0
2#include <linux/hw_breakpoint.h>
3#include <linux/err.h>
4#include <linux/list_sort.h>
5#include <linux/zalloc.h>
6#include <dirent.h>
7#include <errno.h>
8#include <sys/ioctl.h>

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

1709 list = malloc(sizeof(struct list_head));
1710 if (!list)
1711 goto out_err;
1712
1713 INIT_LIST_HEAD(list);
1714
1715 while ((pmu = perf_pmu__scan(pmu)) != NULL) {
1716 struct perf_pmu_alias *alias;
1717 bool auto_merge_stats;
1717
1718 if (parse_events__filter_pmu(parse_state, pmu))
1719 continue;
1720
1718
1719 if (parse_events__filter_pmu(parse_state, pmu))
1720 continue;
1721
1722 auto_merge_stats = perf_pmu__auto_merge_stats(pmu);
1723
1721 list_for_each_entry(alias, &pmu->aliases, list) {
1722 if (!strcasecmp(alias->name, str)) {
1723 parse_events_copy_term_list(head, &orig_head);
1724 if (!parse_events_add_pmu(parse_state, list,
1725 pmu->name, orig_head,
1724 list_for_each_entry(alias, &pmu->aliases, list) {
1725 if (!strcasecmp(alias->name, str)) {
1726 parse_events_copy_term_list(head, &orig_head);
1727 if (!parse_events_add_pmu(parse_state, list,
1728 pmu->name, orig_head,
1726 /*auto_merge_stats=*/true)) {
1729 auto_merge_stats)) {
1727 pr_debug("%s -> %s/%s/\n", str,
1728 pmu->name, alias->str);
1729 ok++;
1730 }
1731 parse_events_terms__delete(orig_head);
1732 }
1733 }
1734 }

--- 1006 unchanged lines hidden ---
1730 pr_debug("%s -> %s/%s/\n", str,
1731 pmu->name, alias->str);
1732 ok++;
1733 }
1734 parse_events_terms__delete(orig_head);
1735 }
1736 }
1737 }

--- 1006 unchanged lines hidden ---