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]
Message-ID: <20150821141311.GD2522@redhat.com>
Date:	Fri, 21 Aug 2015 11:13:11 -0300
From:	Arnaldo Carvalho de Melo <acme@...hat.com>
To:	Wang Nan <wangnan0@...wei.com>, Ingo Molnar <mingo@...nel.org>
Cc:	ast@...mgrid.com, brendan.d.gregg@...il.com, daniel@...earbox.net,
	dsahern@...il.com, hekuang@...wei.com, jolsa@...nel.org,
	xiakaixu@...wei.com, masami.hiramatsu.pt@...achi.com,
	namhyung@...nel.org, a.p.zijlstra@...llo.nl, lizefan@...wei.com,
	pi3orama@....com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 01/29] perf probe: Try to use symbol table if searching
 debug info failed

Em Fri, Aug 21, 2015 at 10:09:02AM +0000, Wang Nan escreveu:
> Although libdw returns an error (Failed to get call frame),
> perf tries symbol table and finally gets correct address.

So, what my script does when processing from the e-mail messages is to
add a Cc: line for each of the e-mail addresses found, that way, in the
git history, we will know who got notifications about the patch.

There is also the Link tag, that it forms using the Message-ID, i.e.:

Link: http://lkml.kernel.org/r/<MESSAGE-ID>

Which I put right before my own "Signed-off-by: Arnaldo" line.

So:

Reported-by: Name <foo@....baz>
Signed-off-by: Original Author <e@...l.bla>
Reviewed-by: Name <foo@....baz>
Acked-by: Name <foo@....baz>
Tested-by: Bla <foo@....baz>
Link: http://lkml.kernel.org/r/<MESSAGE-ID>
Signed-off-by: You <you@...r.company>

I've been avoiding having the same person in multiple tags, i.e. if
someone reviewed, tested, acked, then no need to have it on the Cc:
list, if someone tested and acked, the Tested-by: is enough, implies an
Acked-by.

My script has a database of e-mail addresses and expands it to have the
names and addresses, i.e.: "Arnaldo Carvalho de Melo <acme@...hat.com>"
instead of just acme@...hat.com, etc.

If someone reacts to your patch and acks it, you should try to add the
relevant tag to your patch, possibly doing a 'rebase -i
patch-just-before, reword it, etc" before I process it, doing so will
reduce the work I have to do to process your patches.

Now ideally this would all happen before you put it somewhere public so
that we don't disrupt git trees cloned from ours, but I'm leaving that
to my upstreamers (Ingo and Linus), which I should refrain from as I go
on pulling from other people more often, which I really want, its all
just a matter of us all agreeing to some common ground on how to format
those patches that doesn't requires me being the one doing the patch
editing, etc, which adds up as a burden, preventing me from doing more
interesting work :)

This set of rules evolved over time as I went by pushing patches to
Ingo, it would be good if you followed it so that I could straight away
pull from your tree.

Anyway, thanks for trying to be taking the steps in that direction, I
will now go back to processing the Intel PT patches so that I can get
back to eBPF.

- Arnaldo
 
> Signed-off-by: Wang Nan <wangnan0@...wei.com>
> ---
>  tools/perf/util/probe-event.c | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/tools/perf/util/probe-event.c b/tools/perf/util/probe-event.c
> index fe4941a..f07374b 100644
> --- a/tools/perf/util/probe-event.c
> +++ b/tools/perf/util/probe-event.c
> @@ -705,9 +705,10 @@ static int try_to_find_probe_trace_events(struct perf_probe_event *pev,
>  	}
>  	/* Error path : ntevs < 0 */
>  	pr_debug("An error occurred in debuginfo analysis (%d).\n", ntevs);
> -	if (ntevs == -EBADF) {
> -		pr_warning("Warning: No dwarf info found in the vmlinux - "
> -			"please rebuild kernel with CONFIG_DEBUG_INFO=y.\n");
> +	if (ntevs < 0) {
> +		if (ntevs == -EBADF)
> +			pr_warning("Warning: No dwarf info found in the vmlinux - "
> +				"please rebuild kernel with CONFIG_DEBUG_INFO=y.\n");
>  		if (!need_dwarf) {
>  			pr_debug("Trying to use symbols.\n");
>  			return 0;
> -- 
> 2.1.0
--
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