mmap-basic.c (351a1f5c8afa13ea5cfcdae543f6596ef8ebdbd9) mmap-basic.c (a583053299c1e66e6202b494cbc3acd93cedc4cc)
1// SPDX-License-Identifier: GPL-2.0
2#include <errno.h>
3#include <inttypes.h>
4/* For the CLR_() macros */
5#include <pthread.h>
6#include <stdlib.h>
7#include <perf/cpumap.h>
8

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

37 cpu_set_t cpu_set;
38 const char *syscall_names[] = { "getsid", "getppid", "getpgid", };
39 pid_t (*syscalls[])(void) = { (void *)getsid, getppid, (void*)getpgid };
40#define nsyscalls ARRAY_SIZE(syscall_names)
41 unsigned int nr_events[nsyscalls],
42 expected_nr_events[nsyscalls], i, j;
43 struct evsel *evsels[nsyscalls], *evsel;
44 char sbuf[STRERR_BUFSIZE];
1// SPDX-License-Identifier: GPL-2.0
2#include <errno.h>
3#include <inttypes.h>
4/* For the CLR_() macros */
5#include <pthread.h>
6#include <stdlib.h>
7#include <perf/cpumap.h>
8

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

37 cpu_set_t cpu_set;
38 const char *syscall_names[] = { "getsid", "getppid", "getpgid", };
39 pid_t (*syscalls[])(void) = { (void *)getsid, getppid, (void*)getpgid };
40#define nsyscalls ARRAY_SIZE(syscall_names)
41 unsigned int nr_events[nsyscalls],
42 expected_nr_events[nsyscalls], i, j;
43 struct evsel *evsels[nsyscalls], *evsel;
44 char sbuf[STRERR_BUFSIZE];
45 struct perf_mmap *md;
45 struct mmap *md;
46
47 threads = thread_map__new(-1, getpid(), UINT_MAX);
48 if (threads == NULL) {
49 pr_debug("thread_map__new\n");
50 return -1;
51 }
52
53 cpus = perf_cpu_map__new(NULL);

--- 113 unchanged lines hidden ---
46
47 threads = thread_map__new(-1, getpid(), UINT_MAX);
48 if (threads == NULL) {
49 pr_debug("thread_map__new\n");
50 return -1;
51 }
52
53 cpus = perf_cpu_map__new(NULL);

--- 113 unchanged lines hidden ---