WSL2-Linux-Kernel/tools/perf/util/include/linux
Arnaldo Carvalho de Melo 9402e23f90 perf tools: Import rb_erase_init from block/ in the kernel sources
I was assuming rb_erase() was setting things up like list_del_init, but
the fact that thread__delete() was being sucessfull is because the last
thing before deleting is to remove the thread from the
machine->dead_threads list, using list_del_init(), that has the same
effect as using rb_erase_init()...

Introduce this function so that we can use it when removing objects from
rb_trees.

Then we will be able to BUG_ON(still on a list) in destructors.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: David Ahern <dsahern@gmail.com>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-55b16mbtndjyd7zzg8nmnamx@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-05-27 12:21:44 -03:00
..
bitmap.h perf tools: Add test_and_set_bit function 2014-11-06 17:42:13 -03:00
const.h perf: Fix UAPI fallout 2012-10-14 12:22:52 -07:00
ctype.h perf tools: Bring linear set of section headers for features 2009-11-11 07:30:19 +01:00
kernel.h perf tools: Move pr_* debug macros into debug object 2014-07-17 12:58:39 -03:00
linkage.h perf bench: Add feature that measures the performance of the arch/x86/lib/memcpy_64.S memcpy routines via 'perf bench mem' 2010-11-26 08:15:57 +01:00
list.h tools: Consolidate types.h 2014-05-01 21:22:39 +02:00
poison.h perf_counter tools: Share list.h with the kernel 2009-07-01 22:37:23 +02:00
rbtree.h perf tools: Import rb_erase_init from block/ in the kernel sources 2015-05-27 12:21:44 -03:00
rbtree_augmented.h perf: Handle new rbtree implementation 2012-10-13 10:12:09 +09:00
string.h Revert "perf tools: Default to cpu// for events v5" 2014-10-15 16:04:33 -03:00