OpenVZ Forum


Home » Mailing lists » Devel » [GIT PULL 0/2] perf/urgent fixes
[GIT PULL 0/2] perf/urgent fixes [message #44611] Wed, 07 December 2011 15:47 Go to next message
Arnaldo Carvalho de M[2] is currently offline  Arnaldo Carvalho de M[2]
Messages: 17
Registered: November 2011
Junior Member
From: *parallels.com
Hi Ingo,

Please consider pulling from:

git://github.com/acmel/linux.git perf/urgent

Regards,

- Arnaldo

Andrew Vagin (1):
perf header: Use event_name() to get an event name

Anton Blanchard (1):
perf stat: Failure with "Operation not supported"

tools/perf/builtin-stat.c | 3 ++-
tools/perf/util/header.c | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)

--
1.7.8.rc0.35.gee6df
[PATCH 2/2] perf header: Use event_name() to get an event name [message #44613 is a reply to message #44611] Wed, 07 December 2011 15:47 Go to previous message
Arnaldo Carvalho de M[2] is currently offline  Arnaldo Carvalho de M[2]
Messages: 17
Registered: November 2011
Junior Member
From: *parallels.com
From: Andrew Vagin <avagin@openvz.org>

perf_evsel.name may be not initialized

Cc: David Ahern <dsahern@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arun Sharma <asharma@fb.com>
Cc: devel@openvz.org
Link: http://lkml.kernel.org/r/1322471015-107825-2-git-send-email- avagin@openvz.org
Signed-off-by: Andrew Vagin <avagin@openvz.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
tools/perf/util/header.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c
index bcd05d0..33c17a2 100644
--- a/tools/perf/util/header.c
+++ b/tools/perf/util/header.c
@@ -388,7 +388,7 @@ static int write_event_desc(int fd, struct perf_header *h __used,
/*
* write event string as passed on cmdline
*/
- ret = do_write_string(fd, attr->name);
+ ret = do_write_string(fd, event_name(attr));
if (ret < 0)
return ret;
/*
--
1.7.8.rc0.35.gee6df
Previous Topic: Remote processing of core dump
Next Topic: [PATCH 0/7] Profiling sleep times (v3)
Goto Forum:
  


Current Time: Sun Jul 05 00:29:15 GMT 2020