sw-clock.c (772c1d06bd402f7ee72c61a18c2db74cd74b6758) sw-clock.c (a583053299c1e66e6202b494cbc3acd93cedc4cc)
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#include <linux/string.h>

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

37 .config = clock_id,
38 .sample_type = PERF_SAMPLE_PERIOD,
39 .exclude_kernel = 1,
40 .disabled = 1,
41 .freq = 1,
42 };
43 struct perf_cpu_map *cpus;
44 struct perf_thread_map *threads;
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#include <linux/string.h>

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

37 .config = clock_id,
38 .sample_type = PERF_SAMPLE_PERIOD,
39 .exclude_kernel = 1,
40 .disabled = 1,
41 .freq = 1,
42 };
43 struct perf_cpu_map *cpus;
44 struct perf_thread_map *threads;
45 struct perf_mmap *md;
45 struct mmap *md;
46
47 attr.sample_freq = 500;
48
49 evlist = evlist__new();
50 if (evlist == NULL) {
51 pr_debug("evlist__new\n");
52 return -1;
53 }

--- 94 unchanged lines hidden ---
46
47 attr.sample_freq = 500;
48
49 evlist = evlist__new();
50 if (evlist == NULL) {
51 pr_debug("evlist__new\n");
52 return -1;
53 }

--- 94 unchanged lines hidden ---