code-reading.c (63503dba87acfab49280d3b05df6705a6f327e8a) code-reading.c (0f98b11c616f240b54ee85629ff4d3650c7ccc7d)
1// SPDX-License-Identifier: GPL-2.0
2#include <errno.h>
3#include <linux/kernel.h>
4#include <linux/types.h>
5#include <inttypes.h>
6#include <stdlib.h>
7#include <unistd.h>
8#include <stdio.h>

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

617 if (!cpus) {
618 pr_debug("cpu_map__new failed\n");
619 goto out_put;
620 }
621
622 while (1) {
623 const char *str;
624
1// SPDX-License-Identifier: GPL-2.0
2#include <errno.h>
3#include <linux/kernel.h>
4#include <linux/types.h>
5#include <inttypes.h>
6#include <stdlib.h>
7#include <unistd.h>
8#include <stdio.h>

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

617 if (!cpus) {
618 pr_debug("cpu_map__new failed\n");
619 goto out_put;
620 }
621
622 while (1) {
623 const char *str;
624
625 evlist = perf_evlist__new();
625 evlist = evlist__new();
626 if (!evlist) {
627 pr_debug("perf_evlist__new failed\n");
628 goto out_put;
629 }
630
631 perf_evlist__set_maps(evlist, cpus, threads);
632
633 str = do_determine_event(excl_kernel);

--- 110 unchanged lines hidden ---
626 if (!evlist) {
627 pr_debug("perf_evlist__new failed\n");
628 goto out_put;
629 }
630
631 perf_evlist__set_maps(evlist, cpus, threads);
632
633 str = do_determine_event(excl_kernel);

--- 110 unchanged lines hidden ---