summaryrefslogtreecommitdiff
path: root/tools/perf/arch/s390/util/machine.c
blob: b9a95a1a8e6909ab2d93e6f62d06de907dc799a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include "util.h"
#include "machine.h"
#include "api/fs/fs.h"

int arch__fix_module_text_start(u64 *start, const char *name)
{
	char path[PATH_MAX];

	snprintf(path, PATH_MAX, "module/%.*s/sections/.text",
				(int)strlen(name) - 2, name + 1);

	if (sysfs__read_ull(path, (unsigned long long *)start) < 0)
		return -1;

	return 0;
}
net-next.git/diff/net/ipv4/igmp.c?id=1ee18329fae936089c6c599250ae92482ff2b81f'>net/ipv4/igmp.c1
-rw-r--r--net/ipv4/ping.c2
-rw-r--r--net/ipv6/addrconf.c6
-rw-r--r--net/ipv6/mcast.c1
-rw-r--r--net/ipv6/sit.c1
-rw-r--r--net/kcm/kcmsock.c40
-rw-r--r--net/l2tp/l2tp_core.h1
-rw-r--r--net/l2tp/l2tp_ip.c27
-rw-r--r--net/l2tp/l2tp_ip6.c2
-rw-r--r--net/packet/af_packet.c7
12 files changed, 67 insertions, 23 deletions
diff --git a/net/dsa/dsa2.c b/net/dsa/dsa2.c