Re: [PATCH 2/2]: sparc64: Add ftrace support.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David Miller <davem@...>
Cc: <mingo@...>, <acme@...>, <linux-kernel@...>
Date: Wednesday, May 14, 2008 - 5:58 pm

David Miller wrote:

I wish it wasn't so ugly. The Makefile scripts allow you to add more 
CFLAGS to specific files but does not have a way to remove generic 
flags. If there was a better way then I would love to do it.

The problem is that adding "notrace" on ever function that needs it, 
also becomes quite messy. Especially when you have files where all 
functions in the file needs a notrace and there is 40 or so small 
functions that this applies to.

To add flags to file foo.c one simply needs to do

CFLAGS_foo.o = -newflags

It would be nice to have something like

CFLAGS_REMOVE_foo.o = -pg

Perhaps that is possible to do. Then the above "Makefile turd" wont be 
so crappy.

-- Steve


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

Messages in current thread:
[PATCH 2/2]: sparc64: Add ftrace support., David Miller, (Wed May 14, 1:06 am)
Re: [PATCH 2/2]: sparc64: Add ftrace support., Steven Rostedt, (Wed May 14, 9:32 am)
Re: [PATCH 2/2]: sparc64: Add ftrace support., David Miller, (Wed May 14, 5:29 pm)
Re: [PATCH 2/2]: sparc64: Add ftrace support., Steven Rostedt, (Wed May 14, 5:58 pm)
Re: [PATCH 2/2]: sparc64: Add ftrace support., David Miller, (Wed May 14, 6:24 pm)