Re: perf build broke by list_head changes...

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Sam Ravnborg
Date: Tuesday, August 10, 2010 - 5:44 am

On Tue, Aug 10, 2010 at 08:36:46AM -0400, Chris Metcalf wrote:

kernel devs usually tell people not to use kernel
headers direct.
But perf does so a lot.

$ cd tools/perf/util; git grep '../../..'
header.h:#include "../../../include/linux/perf_event.h"
include/asm/byteorder.h:#include "../../../../include/linux/swab.h"
include/linux/hash.h:#include "../../../../include/linux/hash.h"
include/linux/list.h:#include "../../../../include/linux/list.h"
include/linux/poison.h:#include "../../../../include/linux/poison.h"
include/linux/rbtree.h:#include "../../../../include/linux/rbtree.h"
parse-events.c:#include "../../../include/linux/hw_breakpoint.h"
parse-events.c: snprintf(evt_path, MAXPATHLEN, "%s/%s/%s/id", debugfs_path,
parse-events.c: snprintf(evt_path, MAXPATHLEN, "%s/%s/%s/id", debugfs_path,
session.h:#include "../../../include/linux/perf_event.h"
util.h:#include "../../../include/linux/magic.h"
util.h:#include "../../../include/linux/stringify.h"

IMO the patch that moves list_head to types.h is fine.
And perf needs to learn good manner with respect to
kernel headers.

	Sam
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
perf build broke by list_head changes..., David Miller, (Mon Aug 9, 11:57 pm)
Re: perf build broke by list_head changes..., Chris Metcalf, (Tue Aug 10, 5:36 am)
Re: perf build broke by list_head changes..., Sam Ravnborg, (Tue Aug 10, 5:44 am)
Re: perf build broke by list_head changes..., Arnaldo Carvalho de Melo, (Tue Aug 10, 6:46 am)
Re: perf build broke by list_head changes..., Arnd Bergmann, (Tue Aug 10, 7:29 am)
Re: perf build broke by list_head changes..., Sam Ravnborg, (Tue Aug 10, 7:32 am)
Re: perf build broke by list_head changes..., Matthew Wilcox, (Tue Aug 10, 8:13 am)
Re: perf build broke by list_head changes..., Arnaldo Carvalho de Melo, (Tue Aug 10, 9:05 am)
Re: perf build broke by list_head changes..., Arnaldo Carvalho de Melo, (Tue Aug 10, 9:06 am)