parse-events.c (aefde50a446b56f592a589e12e89935bea3b85f9) parse-events.c (5ea8f2ccffb23983f02012a2731464586b10fbf3)
1// SPDX-License-Identifier: GPL-2.0
2#include "parse-events.h"
3#include "evsel.h"
4#include "evlist.h"
5#include <api/fs/fs.h>
6#include "tests.h"
7#include "debug.h"
8#include "pmu.h"

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

1921 /* 7 */
1922 },
1923 {
1924 .name = "cpu/L1-dcache-misses,name=cachepmu/",
1925 .valid = test__pmu_cpu_valid,
1926 .check = test__checkevent_config_cache,
1927 /* 8 */
1928 },
1// SPDX-License-Identifier: GPL-2.0
2#include "parse-events.h"
3#include "evsel.h"
4#include "evlist.h"
5#include <api/fs/fs.h>
6#include "tests.h"
7#include "debug.h"
8#include "pmu.h"

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

1921 /* 7 */
1922 },
1923 {
1924 .name = "cpu/L1-dcache-misses,name=cachepmu/",
1925 .valid = test__pmu_cpu_valid,
1926 .check = test__checkevent_config_cache,
1927 /* 8 */
1928 },
1929 {
1930 .name = "cpu/instructions/",
1931 .valid = test__pmu_cpu_valid,
1932 .check = test__checkevent_symbolic_name,
1933 /* 9 */
1934 },
1935 {
1936 .name = "cpu/cycles,period=100000,config2/",
1937 .valid = test__pmu_cpu_valid,
1938 .check = test__checkevent_symbolic_name_config,
1939 /* 0 */
1940 },
1941 {
1942 .name = "cpu/instructions/h",
1943 .valid = test__pmu_cpu_valid,
1944 .check = test__checkevent_symbolic_name_modifier,
1945 /* 1 */
1946 },
1947 {
1948 .name = "cpu/instructions/G",
1949 .valid = test__pmu_cpu_valid,
1950 .check = test__checkevent_exclude_host_modifier,
1951 /* 2 */
1952 },
1953 {
1954 .name = "cpu/instructions/H",
1955 .valid = test__pmu_cpu_valid,
1956 .check = test__checkevent_exclude_guest_modifier,
1957 /* 3 */
1958 },
1959 {
1960 .name = "{cpu/instructions/k,cpu/cycles/upp}",
1961 .valid = test__pmu_cpu_valid,
1962 .check = test__group1,
1963 /* 4 */
1964 },
1965 {
1966 .name = "{cpu/cycles/u,cpu/instructions/kp}:p",
1967 .valid = test__pmu_cpu_valid,
1968 .check = test__group4,
1969 /* 5 */
1970 },
1971 {
1972 .name = "{cpu/cycles/,cpu/cache-misses/G}:H",
1973 .valid = test__pmu_cpu_valid,
1974 .check = test__group_gh1,
1975 /* 6 */
1976 },
1977 {
1978 .name = "{cpu/cycles/,cpu/cache-misses/H}:G",
1979 .valid = test__pmu_cpu_valid,
1980 .check = test__group_gh2,
1981 /* 7 */
1982 },
1983 {
1984 .name = "{cpu/cycles/G,cpu/cache-misses/H}:u",
1985 .valid = test__pmu_cpu_valid,
1986 .check = test__group_gh3,
1987 /* 8 */
1988 },
1989 {
1990 .name = "{cpu/cycles/G,cpu/cache-misses/H}:uG",
1991 .valid = test__pmu_cpu_valid,
1992 .check = test__group_gh4,
1993 /* 9 */
1994 },
1995 {
1996 .name = "{cpu/cycles/,cpu/cache-misses/,cpu/branch-misses/}:S",
1997 .valid = test__pmu_cpu_valid,
1998 .check = test__leader_sample1,
1999 /* 0 */
2000 },
2001 {
2002 .name = "{cpu/instructions/,cpu/branch-misses/}:Su",
2003 .valid = test__pmu_cpu_valid,
2004 .check = test__leader_sample2,
2005 /* 1 */
2006 },
2007 {
2008 .name = "cpu/instructions/uDp",
2009 .valid = test__pmu_cpu_valid,
2010 .check = test__checkevent_pinned_modifier,
2011 /* 2 */
2012 },
2013 {
2014 .name = "{cpu/cycles/,cpu/cache-misses/,cpu/branch-misses/}:D",
2015 .valid = test__pmu_cpu_valid,
2016 .check = test__pinned_group,
2017 /* 3 */
2018 },
2019 {
2020 .name = "cpu/instructions/I",
2021 .valid = test__pmu_cpu_valid,
2022 .check = test__checkevent_exclude_idle_modifier,
2023 /* 4 */
2024 },
2025 {
2026 .name = "cpu/instructions/kIG",
2027 .valid = test__pmu_cpu_valid,
2028 .check = test__checkevent_exclude_idle_modifier_1,
2029 /* 5 */
2030 },
2031 {
2032 .name = "cpu/cycles/u",
2033 .valid = test__pmu_cpu_valid,
2034 .check = test__sym_event_slash,
2035 /* 6 */
2036 },
2037 {
2038 .name = "cpu/cycles/k",
2039 .valid = test__pmu_cpu_valid,
2040 .check = test__sym_event_dc,
2041 /* 7 */
2042 },
2043 {
2044 .name = "cpu/instructions/uep",
2045 .valid = test__pmu_cpu_valid,
2046 .check = test__checkevent_exclusive_modifier,
2047 /* 8 */
2048 },
2049 {
2050 .name = "{cpu/cycles/,cpu/cache-misses/,cpu/branch-misses/}:e",
2051 .valid = test__pmu_cpu_valid,
2052 .check = test__exclusive_group,
2053 /* 9 */
2054 },
1929};
1930
1931struct terms_test {
1932 const char *str;
1933 int (*check)(struct list_head *terms);
1934};
1935
1936static const struct terms_test test__terms[] = {

--- 365 unchanged lines hidden ---
2055};
2056
2057struct terms_test {
2058 const char *str;
2059 int (*check)(struct list_head *terms);
2060};
2061
2062static const struct terms_test test__terms[] = {

--- 365 unchanged lines hidden ---