repo.or.cz
/
linux
/
fpc-iii.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
power: supply: bq24190_charger: Add disable-reset device-property
[linux/fpc-iii.git]
/
tools
/
perf
/
arch
/
s390
/
util
/
machine.c
blob
b9a95a1a8e6909ab2d93e6f62d06de907dc799a1
1
#include <unistd.h>
2
#include <stdio.h>
3
#include <string.h>
4
#include
"util.h"
5
#include
"machine.h"
6
#include
"api/fs/fs.h"
7
8
int
arch__fix_module_text_start
(
u64
*
start
,
const char
*
name
)
9
{
10
char
path
[
PATH_MAX
];
11
12
snprintf
(
path
,
PATH_MAX
,
"module/%.*s/sections/.text"
,
13
(
int
)
strlen
(
name
) -
2
,
name
+
1
);
14
15
if
(
sysfs__read_ull
(
path
, (
unsigned long long
*)
start
) <
0
)
16
return
-
1
;
17
18
return
0
;
19
}