mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
4924734570
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>
13 lines
268 B
C
13 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);
|
|
}
|