tools include: Adopt kernel's refcount.h
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 22 Feb 2017 20:00:53 +0000 (17:00 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 3 Mar 2017 22:07:14 +0000 (19:07 -0300)
commit73a9bf95ed1c05698ecabe2f28c47aedfa61b52b
treeed8acdb952514865a0433810088de99f713659ef
parenteaa75b5117d52adf1efd3c6c3fb4bd8f97de648b
tools include: Adopt kernel's refcount.h

To aid in catching bugs when using atomics as a reference count.

This is a trimmed down version with just what is used by tools/ at
this point.

After this, the patches submitted by Elena for tools/ doing the
conversion from atomic_ to recount_ methods can be applied and tested.

To activate it, buint perf with:

  make DEBUG=1 -C tools/perf

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Elena Reshetova <elena.reshetova@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-dqtxsumns9ov0l9r5x398f19@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/include/linux/refcount.h [new file with mode: 0644]
tools/perf/MANIFEST