hc
2024-05-16 8d2a02b24d66aa359e83eebc1ed3c0f85367a1cb
kernel/tools/perf/arch/s390/util/machine.c
....@@ -2,7 +2,7 @@
22 #include <unistd.h>
33 #include <stdio.h>
44 #include <string.h>
5
-#include "util.h"
5
+#include <internal/lib.h> // page_size
66 #include "machine.h"
77 #include "api/fs/fs.h"
88 #include "debug.h"
....@@ -33,20 +33,4 @@
3333 }
3434
3535 return 0;
36
-}
37
-
38
-/* On s390 kernel text segment start is located at very low memory addresses,
39
- * for example 0x10000. Modules are located at very high memory addresses,
40
- * for example 0x3ff xxxx xxxx. The gap between end of kernel text segment
41
- * and beginning of first module's text segment is very big.
42
- * Therefore do not fill this gap and do not assign it to the kernel dso map.
43
- */
44
-void arch__symbols__fixup_end(struct symbol *p, struct symbol *c)
45
-{
46
- if (strchr(p->name, '[') == NULL && strchr(c->name, '['))
47
- /* Last kernel symbol mapped to end of page */
48
- p->end = roundup(p->end, page_size);
49
- else
50
- p->end = c->start;
51
- pr_debug4("%s sym:%s end:%#lx\n", __func__, p->name, p->end);
5236 }