parse-metric.c (7ae5c03a27934bee9daaeede1b0b1d4bada61ffd) parse-metric.c (1ba3752aec30c04bfb7c82b44332ff98294ec0b8)
1// SPDX-License-Identifier: GPL-2.0
2#include <linux/compiler.h>
3#include <string.h>
4#include <perf/cpumap.h>
5#include <perf/evlist.h>
6#include "metricgroup.h"
7#include "tests.h"
8#include "pmu-events/pmu-events.h"

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

67
68static int __compute_metric(const char *name, struct value *vals,
69 const char *name1, double *ratio1,
70 const char *name2, double *ratio2)
71{
72 struct rblist metric_events = {
73 .nr_entries = 0,
74 };
1// SPDX-License-Identifier: GPL-2.0
2#include <linux/compiler.h>
3#include <string.h>
4#include <perf/cpumap.h>
5#include <perf/evlist.h>
6#include "metricgroup.h"
7#include "tests.h"
8#include "pmu-events/pmu-events.h"

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

67
68static int __compute_metric(const char *name, struct value *vals,
69 const char *name1, double *ratio1,
70 const char *name2, double *ratio2)
71{
72 struct rblist metric_events = {
73 .nr_entries = 0,
74 };
75 const struct pmu_event *pme_test;
75 const struct pmu_events_table *pme_test;
76 struct perf_cpu_map *cpus;
77 struct runtime_stat st;
78 struct evlist *evlist;
79 int err;
80
81 /*
82 * We need to prepare evlist for stat mode running on CPU 0
83 * because that's where all the stats are going to be created.

--- 234 unchanged lines hidden ---
76 struct perf_cpu_map *cpus;
77 struct runtime_stat st;
78 struct evlist *evlist;
79 int err;
80
81 /*
82 * We need to prepare evlist for stat mode running on CPU 0
83 * because that's where all the stats are going to be created.

--- 234 unchanged lines hidden ---