perf probe: Fix offset to allow signed value
authorMasami Hiramatsu <mhiramat@redhat.com>
Mon, 15 Mar 2010 17:02:28 +0000 (13:02 -0400)
committerIngo Molnar <mingo@elte.hu>
Tue, 16 Mar 2010 09:02:18 +0000 (10:02 +0100)
commit67c7ff7c56f38a8ab338fbbfe366621ce6303ba1
tree4b7467f95af1eb98a850ce1717bebc9a2e6a465c
parentb63be8d7beda7fe5879559be6f70f8e1c93109e4
perf probe: Fix offset to allow signed value

Fix dereference offset to intmax_t from uintmax_t, because
it can have negative values (for example local variable's offset
from frame pointer).

Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Cc: systemtap <systemtap@sources.redhat.com>
Cc: DLE <dle-develop@lists.sourceforge.net>
LKML-Reference: <20100315170228.31852.71946.stgit@localhost6.localdomain6>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/util/probe-finder.c