]> git.baikalelectronics.ru Git - kernel.git/commit
perf_counter tools: Fix off-by-one bug in symbol__new
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 3 Jun 2009 17:49:21 +0000 (14:49 -0300)
committerIngo Molnar <mingo@elte.hu>
Wed, 3 Jun 2009 19:46:59 +0000 (21:46 +0200)
commit2c8993c1fee822ff9cbbf0b26e434b3e128b3b93
tree21bebb2716a19c1f6aab9fffab6513b07334b97d
parent2fd7e7be7d24d941b0e1de966015f6cc97164849
perf_counter tools: Fix off-by-one bug in symbol__new

The end is really (start + len - 1). Noticed when synthesizing
the PLT symbols, that are small (16 bytes), and hot on the
start RIP.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
LKML-Reference: <20090603174921.GG7805@ghostprotocols.net>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Documentation/perf_counter/util/symbol.c