projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71ff824
)
perf tools: Get rid of dso__data_fd() from dso__data_size()
author
Namhyung Kim
<
[email protected]
>
Wed, 20 May 2015 16:03:40 +0000
(
01:03
+0900)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Wed, 27 May 2015 15:21:44 +0000
(12:21 -0300)
It seems that the dso__data_fd() was needed to find a binary type
since open in data_file_size() alone used to fail.
But as it can open the dso fine now, the dso__data_fd() can go away.
Signed-off-by: Namhyung Kim <
[email protected]
>
Acked-by: Adrian Hunter <
[email protected]
>
Cc: David Ahern <
[email protected]
>
Cc: Jiri Olsa <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
tools/perf/util/dso.c
patch
|
blob
|
history
diff --git
a/tools/perf/util/dso.c
b/tools/perf/util/dso.c
index 516e0c25ea16724ca896f5dec0a7442f42717e8c..e95e850dd832682409e62016797e8087d01ce0ae 100644
(file)
--- a/
tools/perf/util/dso.c
+++ b/
tools/perf/util/dso.c
@@
-745,12
+745,6
@@
out:
*/
off_t dso__data_size(struct dso *dso, struct machine *machine)
{
- int fd;
-
- fd = dso__data_fd(dso, machine);
- if (fd < 0)
- return fd;
-
if (data_file_size(dso, machine))
return -1;