Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1342064 > unrolled thread

Re: [PATCH 21/48] perf record: Extract synthesize code to record__synthesize()

Started byJiri Olsa <jolsa@redhat.com>
First post2016-02-24 15:30 +0100
Last post2016-02-24 15:30 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 21/48] perf record: Extract synthesize code to  record__synthesize() Jiri Olsa <jolsa@redhat.com> - 2016-02-24 15:30 +0100

#1342064 — Re: [PATCH 21/48] perf record: Extract synthesize code to record__synthesize()

FromJiri Olsa <jolsa@redhat.com>
Date2016-02-24 15:30 +0100
SubjectRe: [PATCH 21/48] perf record: Extract synthesize code to record__synthesize()
Message-ID<r5IBY-5Pl-15@gated-at.bofh.it>
On Mon, Feb 22, 2016 at 09:10:48AM +0000, Wang Nan wrote:

SNIP

> +		err = perf_event__synthesize_auxtrace_info(rec->itr, tool,
> +					session, process_synthesized_event);
> +		if (err)
> +			goto out;
> +	}
> +
> +	err = perf_event__synthesize_kernel_mmap(tool, process_synthesized_event,
> +						 machine);
> +	if (err < 0 && !warned_kmaps) {
> +		warned_kmaps = true;
> +		pr_err("Couldn't record kernel reference relocation symbol\n"
> +		       "Symbol resolution may be skewed if relocation was used (e.g. kexec).\n"
> +		       "Check /proc/kallsyms permission or run as root.\n");
> +	}
> +
> +	err = perf_event__synthesize_modules(tool, process_synthesized_event,
> +					     machine);
> +	if (err < 0 && !warned_modules) {
> +		warned_modules = true;

could you please add logic for warning just once
into separate patch, so this is just pure move?

also we have WARN_ONCE macro in perf

thanks,
jirka

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web