diff options
author | Olof Johansson <olof@lixom.net> | 2012-03-08 18:20:29 +0100 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2012-03-08 18:20:29 +0100 |
commit | acf346084bca289a00020a5c29c23673b801b380 (patch) | |
tree | 1ab7f6eeefd0564d8fb708b858dc19c8b7e0a67c /tools/perf/util/probe-event.c | |
parent | Merge tag 'tegra-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/olof/t... (diff) | |
parent | ARM: mx35: Setup the AIPS registers (diff) | |
download | linux-acf346084bca289a00020a5c29c23673b801b380.tar.xz linux-acf346084bca289a00020a5c29c23673b801b380.zip |
Merge tag 'imx35-imx5-aips-setup' of git://git.pengutronix.de/git/imx/linux-2.6 into next/soc
i.MX35/5 AIPS setup
Includes sync up to 3.3-rc6
* tag 'imx35-imx5-aips-setup' of git://git.pengutronix.de/git/imx/linux-2.6:
ARM: mx35: Setup the AIPS registers
ARM: mx5: Use common function for configuring AIPS
Diffstat (limited to 'tools/perf/util/probe-event.c')
-rw-r--r-- | tools/perf/util/probe-event.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/perf/util/probe-event.c b/tools/perf/util/probe-event.c index 29cb65459811..e33554a562b3 100644 --- a/tools/perf/util/probe-event.c +++ b/tools/perf/util/probe-event.c @@ -1867,6 +1867,12 @@ static int convert_to_probe_trace_events(struct perf_probe_event *pev, tev->point.symbol); ret = -ENOENT; goto error; + } else if (tev->point.offset > sym->end - sym->start) { + pr_warning("Offset specified is greater than size of %s\n", + tev->point.symbol); + ret = -ENOENT; + goto error; + } return 1; |