#debian系的可以使用dpkg -l linux-image*命令,查看具体内核版本;huang@ThinkPad-X220:~$ dpkg -l linux-image*
Desired=Unknown/Install/Remove/Purge/Hold
|Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)||/ Name Version Architecture Description
+++-======================-================-================-==================================================un linux-image <none> <none> (no description available)un linux-image-3.0 <none> <none> (no description available)ii linux-image-3.13.0-24- 3.13.0-24.47 amd64 Linux kernel image for version 3.13.0 on 64 bit x8
ii linux-image-3.13.0-24- 3.13.0-24.47 amd64 Linux kernel debug image for version 3.13.0 on 64ii linux-image-extra-3.13 3.13.0-24.46 amd64 Linux kernel extra modules for version 3.13.0 on 6ii linux-image-generic 3.13.0.24.28 amd64 Generic Linux kernel image
#特别要注意的是3.13.0-24.46、 47、 48,小版本很重要的。
三、centos6.4的gcc版本过低导致的问题
在使用stapxx的工具追踪nginx运行情况时,发现有如下情况,比如:
1
2
3
4
5
6
7
8
9
10
11
12
2> sudo ./samples/ngx-rewrite-latency-distr.sxx -x 11070semantic error: not accessible at this address [man error::dwarf](0x44a53b, dieoffset: 0x13a891): identifier '$r' at <input>:67:9
source: r=$r ^
Pass 2: analysis failed. [man error::pass2]# 这个r是没有问题的,在nginx-systemtap-toolkit/ngx-active-reqs中有类似定义:my $c='@cast(c, "ngx_connection_t")';my $r='@cast(r, "ngx_http_request_t")';my $u='@cast(u, "ngx_http_upstream_t")';my $p='@cast(p, "ngx_event_pipe_t")';