[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20171221232731.e84a838608d124770b251500@kernel.org>
Date: Thu, 21 Dec 2017 23:27:31 +0900
From: Masami Hiramatsu <mhiramat@...nel.org>
To: Steven Rostedt <rostedt@...dmis.org>
Cc: David Miller <davem@...emloft.net>, mingo@...nel.org,
ian.mcdonald@...di.co.nz, vyasevich@...il.com,
stephen@...workplumber.org, peterz@...radead.org,
tglx@...utronix.de, linux-kernel@...r.kernel.org, hpa@...or.com,
gerrit@....abdn.ac.uk, nhorman@...driver.com, dccp@...r.kernel.org,
netdev@...r.kernel.org, linux-sctp@...r.kernel.org,
sfr@...b.auug.org.au
Subject: Re: [PATCH net-next v4 0/6] net: tcp: sctp: dccp: Replace jprobe
usage with trace events
On Wed, 20 Dec 2017 22:12:38 -0500
Steven Rostedt <rostedt@...dmis.org> wrote:
> On Thu, 21 Dec 2017 11:36:57 +0900
> Masami Hiramatsu <mhiramat@...nel.org> wrote:
>
> > On Wed, 20 Dec 2017 14:24:24 -0500 (EST)
> > David Miller <davem@...emloft.net> wrote:
> >
> > > From: David Miller <davem@...emloft.net>
> > > Date: Wed, 20 Dec 2017 14:20:40 -0500 (EST)
> > >
> > > > From: Masami Hiramatsu <mhiramat@...nel.org>
> > > > Date: Wed, 20 Dec 2017 13:14:11 +0900
> > > >
> > > >> This series is v4 of the replacement of jprobe usage with trace
> > > >> events. This version is rebased on net-next, fixes a build warning
> > > >> and moves a temporal variable definition in a block.
> > > >>
> > > >> Previous version is here;
> > > >> https://lkml.org/lkml/2017/12/19/153
> > > >>
> > > >> Changes from v3:
> > > >> All: Rebased on net-next
> > > >> [3/6]: fixes a build warning for i386 by casting pointer unsigned
> > > >> long instead of __u64, and moves a temporal variable
> > > >> definition in a block.
> > > >
> > > > Looks good, series applied to net-next, thanks.
> > >
> > > Actually, this doesn't even compile, so I've reverted:
> > >
> > > [davem@...p-10-15-49-227 net-next]$ make -s -j16
> > > In file included from net/dccp/trace.h:105:0,
> > > from net/dccp/proto.c:42:
> > > ./include/trace/define_trace.h:89:42: fatal error: ./trace.h: No such file or directory
> > > #include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
> > > ^
> > > compilation terminated.
> >
> > Hi David,
> >
> > Could you share your .config file? I would like to reproduce it.
> > When I tried with attached kconfig, I could not reproduce this issue,
> > and could run it.
> >
>
> Hi Masami,
>
> Are you sure you committed everything in this change set? I don't see a
> modification of the Makefile to get the trace.h file you created.
> Shouldn't there be something like:
>
> CFLAGS_proto.o := -I$(src)
>
> in the Makefile?
You're correct. I could reproduce it with kallmodconfig.
And when I add below diff, it is resolved.
If I built with O=<dir> option, it didn't happen.
diff --git a/net/dccp/Makefile b/net/dccp/Makefile
index 9d0383d2f277..8d4a8e901ae0 100644
--- a/net/dccp/Makefile
+++ b/net/dccp/Makefile
@@ -25,3 +25,5 @@ obj-$(CONFIG_INET_DCCP_DIAG) += dccp_diag.o
dccp-$(CONFIG_SYSCTL) += sysctl.o
dccp_diag-y := diag.o
+
+CFLAGS_proto.o := -I$(src)
I'll update [5/6].
Thank you,
--
Masami Hiramatsu <mhiramat@...nel.org>
Powered by blists - more mailing lists