projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
perf symbols: Don't try to find DSOs in SYSV maps
[deliverable/linux.git]
/
tools
/
perf
/
builtin-sched.c
diff --git
a/tools/perf/builtin-sched.c
b/tools/perf/builtin-sched.c
index f5874a27b34658dbd026c5f94d5e353c63722937..9c9287fbf8e98d4b480a668d34d756b2c11ed9f3 100644
(file)
--- a/
tools/perf/builtin-sched.c
+++ b/
tools/perf/builtin-sched.c
@@
-428,6
+428,7
@@
static u64 get_cpu_usage_nsec_parent(void)
static int self_open_counters(void)
{
struct perf_event_attr attr;
static int self_open_counters(void)
{
struct perf_event_attr attr;
+ char sbuf[STRERR_BUFSIZE];
int fd;
memset(&attr, 0, sizeof(attr));
int fd;
memset(&attr, 0, sizeof(attr));
@@
-440,7
+441,8
@@
static int self_open_counters(void)
if (fd < 0)
pr_err("Error: sys_perf_event_open() syscall returned "
if (fd < 0)
pr_err("Error: sys_perf_event_open() syscall returned "
- "with %d (%s)\n", fd, strerror(errno));
+ "with %d (%s)\n", fd,
+ strerror_r(errno, sbuf, sizeof(sbuf)));
return fd;
}
return fd;
}
This page took
0.025735 seconds
and
5
git commands to generate.