lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 11 Dec 2013 14:37:00 +0200
From:	Alexander Shishkin <alexander.shishkin@...ux.intel.com>
To:	Peter Zijlstra <a.p.zijlstra@...llo.nl>,
	Arnaldo Carvalho de Melo <acme@...stprotocols.net>
Cc:	Ingo Molnar <mingo@...hat.com>, linux-kernel@...r.kernel.org,
	David Ahern <dsahern@...il.com>,
	Frederic Weisbecker <fweisbec@...il.com>,
	Jiri Olsa <jolsa@...hat.com>, Mike Galbraith <efault@....de>,
	Namhyung Kim <namhyung@...il.com>,
	Paul Mackerras <paulus@...ba.org>,
	Stephane Eranian <eranian@...gle.com>,
	Andi Kleen <ak@...ux.intel.com>,
	Adrian Hunter <adrian.hunter@...el.com>
Subject: [PATCH v0 48/71] perf session: Make perf_event__itrace_swap() non-static

From: Adrian Hunter <adrian.hunter@...el.com>

Make it possible for the Instruction Trace decoder
to read and byte-swap Instruction Tracing events
directly from file.

Signed-off-by: Adrian Hunter <adrian.hunter@...el.com>
---
 tools/perf/util/session.c | 4 ++--
 tools/perf/util/session.h | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c
index 55aead5..49c89e7 100644
--- a/tools/perf/util/session.c
+++ b/tools/perf/util/session.c
@@ -505,8 +505,8 @@ static void perf_event__itrace_info_swap(union perf_event *event,
 	mem_bswap_64(event->itrace_info.priv, size);
 }
 
-static void perf_event__itrace_swap(union perf_event *event,
-				    bool sample_id_all __maybe_unused)
+void perf_event__itrace_swap(union perf_event *event,
+			     bool sample_id_all __maybe_unused)
 {
 	event->itrace.size      = bswap_64(event->itrace.size);
 	event->itrace.offset    = bswap_64(event->itrace.offset);
diff --git a/tools/perf/util/session.h b/tools/perf/util/session.h
index a7873c0..25aa9e7 100644
--- a/tools/perf/util/session.h
+++ b/tools/perf/util/session.h
@@ -61,6 +61,7 @@ struct perf_session *perf_session__new(struct perf_data_file *file,
 void perf_session__delete(struct perf_session *session);
 
 void perf_event_header__bswap(struct perf_event_header *hdr);
+void perf_event__itrace_swap(union perf_event *event, bool sample_id_all);
 
 int __perf_session__process_events(struct perf_session *session,
 				   u64 data_offset, u64 data_size, u64 size,
-- 
1.8.5.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ