Commit 5da50258 authored by Arnaldo Carvalho de Melo's avatar Arnaldo Carvalho de Melo Committed by Ingo Molnar

perf_counter tools: Share list.h with the kernel

The copy we were using came from another copy I did for the dwarves
(pahole) package, that came from the kernel years ago.

The only function that is used by the perf tools and that isn't in the
kernel is list_del_range, that I'm leaving in the perf tools only for
now.
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <20090701174608.GA5823@ghostprotocols.net>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 43cbcd8a
...@@ -290,9 +290,10 @@ LIB_FILE=libperf.a ...@@ -290,9 +290,10 @@ LIB_FILE=libperf.a
LIB_H += ../../include/linux/perf_counter.h LIB_H += ../../include/linux/perf_counter.h
LIB_H += ../../include/linux/rbtree.h LIB_H += ../../include/linux/rbtree.h
LIB_H += ../../include/linux/list.h
LIB_H += util/include/linux/list.h
LIB_H += perf.h LIB_H += perf.h
LIB_H += util/types.h LIB_H += util/types.h
LIB_H += util/list.h
LIB_H += util/levenshtein.h LIB_H += util/levenshtein.h
LIB_H += util/parse-options.h LIB_H += util/parse-options.h
LIB_H += util/parse-events.h LIB_H += util/parse-events.h
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#include "util/util.h" #include "util/util.h"
#include "util/color.h" #include "util/color.h"
#include "util/list.h" #include <linux/list.h>
#include "util/cache.h" #include "util/cache.h"
#include <linux/rbtree.h> #include <linux/rbtree.h>
#include "util/symbol.h" #include "util/symbol.h"
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#include "util/util.h" #include "util/util.h"
#include "util/color.h" #include "util/color.h"
#include "util/list.h" #include <linux/list.h>
#include "util/cache.h" #include "util/cache.h"
#include <linux/rbtree.h> #include <linux/rbtree.h>
#include "util/symbol.h" #include "util/symbol.h"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
#define __PERF_CALLCHAIN_H #define __PERF_CALLCHAIN_H
#include "../perf.h" #include "../perf.h"
#include "list.h" #include <linux/list.h>
#include <linux/rbtree.h> #include <linux/rbtree.h>
#include "symbol.h" #include "symbol.h"
......
#include "../../../../include/linux/list.h"
#ifndef PERF_LIST_H
#define PERF_LIST_H
/**
* list_del_range - deletes range of entries from list.
* @begin: first element in the range to delete from the list.
* @end: last element in the range to delete from the list.
* Note: list_empty on the range of entries does not return true after this,
* the entries is in an undefined state.
*/
static inline void list_del_range(struct list_head *begin,
struct list_head *end)
{
begin->prev->next = end->next;
end->next->prev = begin->prev;
}
#endif
#include "../../../../include/linux/poison.h"
#ifndef PERF_LINUX_PREFETCH_H
#define PERF_LINUX_PREFETCH_H
static inline void prefetch(void *a __attribute__((unused))) { }
#endif
This diff is collapsed.
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#include <linux/types.h> #include <linux/types.h>
#include "types.h" #include "types.h"
#include "list.h" #include <linux/list.h>
#include <linux/rbtree.h> #include <linux/rbtree.h>
struct symbol { struct symbol {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment