public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 4/4] [perf] fixed faulty check
@ 2009-07-30 10:25 Stoyan Gaydarov
  2009-07-30 10:51 ` Peter Zijlstra
  2009-08-02 13:10 ` [tip:perfcounters/core] perf tools: Fix " tip-bot for Stoyan Gaydarov
  0 siblings, 2 replies; 3+ messages in thread
From: Stoyan Gaydarov @ 2009-07-30 10:25 UTC (permalink / raw)
  To: linux-kernel; +Cc: Stoyan Gaydarov, mingo, acme, a.p.zijlstra, efault

This patche fixes a spelling error that has resulted from copy and pasting. The location of the error was found using a semantic patch but the semantic patch was not trying to find these errors. After looking things over it seemed logical that this change was needed. Please review it and then include the patch if it is in fact the correct change.

Signed-off-by: Stoyan Gaydarov <sgayda2@uiuc.edu>
---
 tools/perf/util/symbol.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c
index 2810605..b4fe057 100644
--- a/tools/perf/util/symbol.c
+++ b/tools/perf/util/symbol.c
@@ -565,7 +565,7 @@ static int dso__load_sym(struct dso *self, int fd, const char *name,
 		goto out_elf_end;
 
 	secstrs = elf_getdata(sec_strndx, NULL);
-	if (symstrs == NULL)
+	if (secstrs == NULL)
 		goto out_elf_end;
 
 	nr_syms = shdr.sh_size / shdr.sh_entsize;
-- 
1.6.3.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 4/4] [perf] fixed faulty check
  2009-07-30 10:25 [PATCH 4/4] [perf] fixed faulty check Stoyan Gaydarov
@ 2009-07-30 10:51 ` Peter Zijlstra
  2009-08-02 13:10 ` [tip:perfcounters/core] perf tools: Fix " tip-bot for Stoyan Gaydarov
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Zijlstra @ 2009-07-30 10:51 UTC (permalink / raw)
  To: Stoyan Gaydarov; +Cc: linux-kernel, mingo, acme, efault

On Thu, 2009-07-30 at 05:25 -0500, Stoyan Gaydarov wrote:
> This patche fixes a spelling error that has resulted from copy and
> pasting. The location of the error was found using a semantic patch
> but the semantic patch was not trying to find these errors. After
> looking things over it seemed logical that this change was needed.
> Please review it and then include the patch if it is in fact the
> correct change.

Looks sane to me. I'll pick it up. Thanks!

> Signed-off-by: Stoyan Gaydarov <sgayda2@uiuc.edu>
> ---
>  tools/perf/util/symbol.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c
> index 2810605..b4fe057 100644
> --- a/tools/perf/util/symbol.c
> +++ b/tools/perf/util/symbol.c
> @@ -565,7 +565,7 @@ static int dso__load_sym(struct dso *self, int fd, const char *name,
>  		goto out_elf_end;
>  
>  	secstrs = elf_getdata(sec_strndx, NULL);
> -	if (symstrs == NULL)
> +	if (secstrs == NULL)
>  		goto out_elf_end;
>  
>  	nr_syms = shdr.sh_size / shdr.sh_entsize;


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [tip:perfcounters/core] perf tools: Fix faulty check
  2009-07-30 10:25 [PATCH 4/4] [perf] fixed faulty check Stoyan Gaydarov
  2009-07-30 10:51 ` Peter Zijlstra
@ 2009-08-02 13:10 ` tip-bot for Stoyan Gaydarov
  1 sibling, 0 replies; 3+ messages in thread
From: tip-bot for Stoyan Gaydarov @ 2009-08-02 13:10 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: linux-kernel, acme, paulus, hpa, mingo, a.p.zijlstra, efault,
	fweisbec, tglx, sgayda2, mingo

Commit-ID:  9b30a26bf3d2c56dcb1c3afaca28b73fcd6ed405
Gitweb:     http://git.kernel.org/tip/9b30a26bf3d2c56dcb1c3afaca28b73fcd6ed405
Author:     Stoyan Gaydarov <sgayda2@uiuc.edu>
AuthorDate: Thu, 30 Jul 2009 05:25:29 -0500
Committer:  Ingo Molnar <mingo@elte.hu>
CommitDate: Sun, 2 Aug 2009 13:47:59 +0200

perf tools: Fix faulty check

This patch fixes a spelling error that has resulted from copy
and pasting. The location of the error was found using a
semantic patch but the semantic patch was not trying to find
these errors. After looking things over it seemed logical that
this change was needed. Please review it and then include the
patch if it is in fact the correct change.

Signed-off-by: Stoyan Gaydarov <sgayda2@uiuc.edu>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <1248949529-20891-1-git-send-email-sgayda2@uiuc.edu>
Signed-off-by: Ingo Molnar <mingo@elte.hu>


---
 tools/perf/util/symbol.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c
index 2810605..b4fe057 100644
--- a/tools/perf/util/symbol.c
+++ b/tools/perf/util/symbol.c
@@ -565,7 +565,7 @@ static int dso__load_sym(struct dso *self, int fd, const char *name,
 		goto out_elf_end;
 
 	secstrs = elf_getdata(sec_strndx, NULL);
-	if (symstrs == NULL)
+	if (secstrs == NULL)
 		goto out_elf_end;
 
 	nr_syms = shdr.sh_size / shdr.sh_entsize;

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-08-02 13:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-30 10:25 [PATCH 4/4] [perf] fixed faulty check Stoyan Gaydarov
2009-07-30 10:51 ` Peter Zijlstra
2009-08-02 13:10 ` [tip:perfcounters/core] perf tools: Fix " tip-bot for Stoyan Gaydarov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox