LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 913|回复: 0

如何把linux kernel里的SCTP_DEBUG选项打开

[复制链接]
发表于 2008-12-29 16:36:07 | 显示全部楼层 |阅读模式
看到一篇文章讲打开SCTP_DEBUG
http://www.diybl.com/course/6_sy ... 2008614/125443.html

最近把kernel里的SCTP_DEBUG打开重新编译, 然后写了一个client/server程序,把kernel SCTP的执行log打出来了。
里面有详细的函数流程
但不知道这个选项的设置在哪?
看了看Makefile和Kconfig文件,其中好像有相关的设置,但不知道怎么配置
********************************************************************Kconfig中部分
config SCTP_DBG_MSG
    bool "SCTP: Debug messages"
    depends on IP_SCTP
    help
      If you say Y, this will enable verbose debugging messages.

      If unsure, say N.  However, if you are running into problems, use
      this option to gather detailed trace information

config SCTP_DBG_OBJCNT
    bool "SCTP: Debug object counts"
    depends on IP_SCTP
    help
      If you say Y, this will enable debugging support for counting the
      type of objects that are currently allocated.  This is useful for
      identifying memory leaks.  If the /proc filesystem is enabled this
      debug information can be viewed by
      'cat /proc/net/sctp/sctp_dbg_objcnt'

      If unsure, say N
********************************************************************
********************************************************************Makefile中部分
#
# Makefile for SCTP support code.
#

obj-$(CONFIG_IP_SCTP) += sctp.o

sctp-y := sm_statetable.o sm_statefuns.o sm_sideeffect.o \
      protocol.o endpointola.o associola.o \
      transport.o chunk.o sm_make_chunk.o ulpevent.o \
      inqueue.o outqueue.o ulpqueue.o command.o \
      tsnmap.o bind_addr.o socket.o primitive.o \
      output.o input.o debug.o ssnmap.o proc.o crc32c.o

sctp-$(CONFIG_SCTP_DBG_OBJCNT) += objcnt.o
sctp-$(CONFIG_SYSCTL) += sysctl.o

sctp-$(subst m,y,$(CONFIG_IPV6))    += ipv6.o
********************************************************************
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表