Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 587570d4 authored by Frederic Weisbecker's avatar Frederic Weisbecker
Browse files

perf: Use generic sample reordering in perf kmem



Use the new generic sample events reordering from perf kmem,
this drops the need of multiplexing the buffers on record time,
improving the scalability of perf kmem.

Signed-off-by: default avatarFrederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Masami Hiramatsu <mhiramat@redhat.com>
Cc: Tom Zanussi <tzanussi@gmail.com>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: Li Zefan <lizf@cn.fujitsu.com>
parent a64eae70
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -337,6 +337,7 @@ static int process_sample_event(event_t *event, struct perf_session *session)
static struct perf_event_ops event_ops = {
static struct perf_event_ops event_ops = {
	.sample			= process_sample_event,
	.sample			= process_sample_event,
	.comm			= event__process_comm,
	.comm			= event__process_comm,
	.ordered_samples	= true,
};
};


static double fragmentation(unsigned long n_req, unsigned long n_alloc)
static double fragmentation(unsigned long n_req, unsigned long n_alloc)
@@ -730,7 +731,6 @@ static const char *record_args[] = {
	"record",
	"record",
	"-a",
	"-a",
	"-R",
	"-R",
	"-M",
	"-f",
	"-f",
	"-c", "1",
	"-c", "1",
	"-e", "kmem:kmalloc",
	"-e", "kmem:kmalloc",