summaryrefslogtreecommitdiff
path: root/tools/perf/perf-read-vdso.c
blob: 764e2547c25abf0c6e0fa7979b3e1c32bfdc99b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include <stdio.h>
#include <string.h>

#define VDSO__MAP_NAME "[vdso]"

/*
 * Include definition of find_vdso_map() also used in util/vdso.c for
 * building perf.
 */
#include "util/find-vdso-map.c"

int main(void)
{
	void *start, *end;
	size_t size, written;

	if (find_vdso_map(&start, &end))
		return 1;

	size = end - start;

	while (size) {
		written = fwrite(start, 1, size, stdout);
		if (!written)
			return 1;
		start += written;
		size -= written;
	}

	if (fflush(stdout))
		return 1;

	return 0;
}
linux/net-next.git/plain/include/uapi/rdma/hns-abi.h?id=63fca65d08632fbec9d9b655f671cf08aa1aeeb8'>plain -rw-r--r--ib_user_cm.h6526logplain -rw-r--r--ib_user_mad.h8791logplain -rw-r--r--ib_user_sa.h2222logplain -rw-r--r--ib_user_verbs.h21586logplain -rw-r--r--mlx4-abi.h2864logplain -rw-r--r--mlx5-abi.h7480logplain -rw-r--r--mthca-abi.h2932logplain -rw-r--r--nes-abi.h3380logplain -rw-r--r--ocrdma-abi.h3918logplain -rw-r--r--qedr-abi.h2559logplain -rw-r--r--rdma_netlink.h4980logplain