0
我試圖運行這個腳本,並顯示沒有tcp連接任何想法?操作系統:CentOS的6.3systemtap tcp連接腳本錯誤
#! /usr/bin/env stap
probe begin {
printf("%6s %16s %6s %6s %16s\n",
"UID", "CMD", "PID", "PORT", "IP_SOURCE")
}
probe kernel.function("tcp_accept").return?,
kernel.function("inet_csk_accept").return? {
sock = $return
if (sock != 0)
printf("%6d %16s %6d %6d %16s\n", uid(), execname(), pid(),
inet_get_local_port(sock), inet_get_ip_source(sock))
}
OUTPUT:
[[email protected] src]# ./tcp_con.stp
Missing separate debuginfos, use: debuginfo-install kernel-2.6.32-279.1.1.el6.centos.plus.x86_64
UID CMD PID PORT IP_SOURCE
centos-plus沒有內核調試RPM,但是所有這些都已安裝:kernel-firmware-2.6.32-279.14.1.el6.centos.plus.noarch kernel-devel-2.6.32-279.1。 1.el6.centos.plus.x86_64 kernel-2.6.32-279.1.1.el6.centos.plus.x86_64 kernel-headers-2.6.32-279.1.1.el6.centos.plus.x86_64 – krisdigitx
請參閱http ://debuginfo.centos.org/6/x86_64 – fche