mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
![Arnaldo Carvalho de Melo](/assets/img/avatar_default.png)
If not, tell the user that: config/Makefile:273: Old libdw.h, finding variables at given 'perf probe' point will not work, install elfutils-devel/libdw-dev >= 0.157 And return -ENOTSUPP in die_get_var_range(), failing features that need it, like the one pointed out above. This fixes the build on older systems, such as Ubuntu 12.04.5. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Vinson Lee <vlee@freedesktop.org> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/n/tip-9l7luqkq4gfnx7vrklkq4obs@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
12 lines
268 B
C
12 lines
268 B
C
#include <stdlib.h>
|
|
#include <elfutils/libdw.h>
|
|
|
|
int main(void)
|
|
{
|
|
Dwarf_Addr base, start, end;
|
|
Dwarf_Attribute attr;
|
|
Dwarf_Op *op;
|
|
size_t nops;
|
|
ptrdiff_t offset = 0;
|
|
return (int)dwarf_getlocations(&attr, offset, &base, &start, &end, &op, &nops);
|
|
}
|