linux-stable/tools/lib/bpf
Arnaldo Carvalho de Melo 53897a78ca tools lib bpf: Use IS_ERR() reporting macros with bpf_map__get_def()
And for consistency, rename it to bpf_map__def(), leaving "get" for
reference counting.

Also make it return a const pointer, as suggested by Wang.

Acked-by: Wang Nan <wangnan0@huawei.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Milian Wolff <milian.wolff@kdab.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/n/tip-mer00xqkiho0ymg66b5i9luw@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2016-06-06 18:18:55 -03:00
..
.gitignore tools lib bpf: Change FEATURE-DUMP to FEATURE-DUMP.libbpf 2015-11-05 12:47:51 -03:00
bpf.c perf tools: Fix PowerPC native building 2016-01-11 19:22:20 -03:00
bpf.h bpf tools: Add helper function for updating bpf maps elements 2015-11-26 17:21:24 -03:00
Build bpf tools: Add bpf.c/h for common bpf operations 2015-08-07 10:16:58 -03:00
libbpf.c tools lib bpf: Use IS_ERR() reporting macros with bpf_map__get_def() 2016-06-06 18:18:55 -03:00
libbpf.h tools lib bpf: Use IS_ERR() reporting macros with bpf_map__get_def() 2016-06-06 18:18:55 -03:00
Makefile perf bpf: Fix build breakage due to libbpf 2016-01-11 19:22:21 -03:00