sw-clock.c (63503dba87acfab49280d3b05df6705a6f327e8a) sw-clock.c (0f98b11c616f240b54ee85629ff4d3650c7ccc7d)
1// SPDX-License-Identifier: GPL-2.0
2#include <errno.h>
3#include <inttypes.h>
4#include <unistd.h>
5#include <stdlib.h>
6#include <signal.h>
7#include <sys/mman.h>
8

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

38 .freq = 1,
39 };
40 struct perf_cpu_map *cpus;
41 struct perf_thread_map *threads;
42 struct perf_mmap *md;
43
44 attr.sample_freq = 500;
45
1// SPDX-License-Identifier: GPL-2.0
2#include <errno.h>
3#include <inttypes.h>
4#include <unistd.h>
5#include <stdlib.h>
6#include <signal.h>
7#include <sys/mman.h>
8

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

38 .freq = 1,
39 };
40 struct perf_cpu_map *cpus;
41 struct perf_thread_map *threads;
42 struct perf_mmap *md;
43
44 attr.sample_freq = 500;
45
46 evlist = perf_evlist__new();
46 evlist = evlist__new();
47 if (evlist == NULL) {
47 if (evlist == NULL) {
48 pr_debug("perf_evlist__new\n");
48 pr_debug("evlist__new\n");
49 return -1;
50 }
51
52 evsel = perf_evsel__new(&attr);
53 if (evsel == NULL) {
54 pr_debug("perf_evsel__new\n");
55 goto out_delete_evlist;
56 }

--- 88 unchanged lines hidden ---
49 return -1;
50 }
51
52 evsel = perf_evsel__new(&attr);
53 if (evsel == NULL) {
54 pr_debug("perf_evsel__new\n");
55 goto out_delete_evlist;
56 }

--- 88 unchanged lines hidden ---