Skip to content

Commit

Permalink
trace_skb: fix build when CONFIG_NET is not enabled
Browse files Browse the repository at this point in the history
Fix trace_skb_sources build when CONFIG_NET is not enabled:

kernel/built-in.o: In function `probe_skb_dequeue':
trace_skb_sources.c:(.text+0xd9152): undefined reference to `init_net'
trace_skb_sources.c:(.text+0xd9188): undefined reference to `dev_get_by_index'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Randy Dunlap authored and David S. Miller committed Aug 17, 2009
1 parent 1758c09 commit 3a5209e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/trace/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ config BOOT_TRACER

config SKB_SOURCES_TRACER
bool "Trace skb source information"
depends on NET
select GENERIC_TRACER
help
This tracer helps developers/sysadmins correlate skb allocation and
Expand Down

0 comments on commit 3a5209e

Please sign in to comment.