Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf: Add util/include/linuxhash.h to include hash.h of kernel

linux/hash.h, hash header of kernel, is also useful for perf.

util/include/linuxhash.h includes linux/hash.h, so we can use
hash facilities (e.g. hash_long()) in perf now.

Signed-off-by: Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <1264851813-8413-3-git-send-email-mitake@dcl.info.waseda.ac.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

authored by

Hitoshi Mitake and committed by
Ingo Molnar
18e97e06 86d8d296

+6
+1
tools/perf/Makefile
··· 333 333 LIB_H += ../../include/linux/perf_event.h 334 334 LIB_H += ../../include/linux/rbtree.h 335 335 LIB_H += ../../include/linux/list.h 336 + LIB_H += ../../include/linux/hash.h 336 337 LIB_H += ../../include/linux/stringify.h 337 338 LIB_H += util/include/linux/bitmap.h 338 339 LIB_H += util/include/linux/bitops.h
+5
tools/perf/util/include/linux/hash.h
··· 1 + #include "../../../../include/linux/hash.h" 2 + 3 + #ifndef PERF_HASH_H 4 + #define PERF_HASH_H 5 + #endif