<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: 用systemtap来修改下linux内核变量的值</title>
	<atom:link href="http://blog.yufeng.info/archives/102/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.yufeng.info/archives/102</link>
	<description>Erlang系统深度探索和应用</description>
	<lastBuildDate>Tue, 07 Feb 2012 01:58:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Yu Feng</title>
		<link>http://blog.yufeng.info/archives/102/comment-page-1#comment-1187</link>
		<dc:creator>Yu Feng</dc:creator>
		<pubDate>Fri, 24 Sep 2010 05:15:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.yufeng.info/?p=102#comment-1187</guid>
		<description>[shell]
[root@localhost ~]# cat test.stp
global tmp=0
probe kernel.function(&quot;do_tcp_setsockopt&quot;)
{
        if(!tmp) next;

        $sysctl_tcp_fin_timeout=tmp;
        printf(&quot;done, sysctl_tcp_fin_timeout=%d\n&quot;, $sysctl_tcp_fin_timeout);
        exit();
}


probe procfs(&quot;sysctl_tcp_fin_timeout&quot;).write
{
        tmp=strtol($value, 10);
        printf(&quot;sysctl_tcp_fin_timeout will be set to %d\n&quot;, tmp);
}

[root@localhost ~]# stap -m test -g test.stp

#在另外的shell下运行
[root@localhost ~]# echo 18000&gt;/proc/systemtap/test/sysctl_tcp_fin_timeout 

[/shell]</description>
		<content:encoded><![CDATA[<pre class="brush: bash; title: ; notranslate">
[root@localhost ~]# cat test.stp
global tmp=0
probe kernel.function(&quot;do_tcp_setsockopt&quot;)
{
        if(!tmp) next;

        $sysctl_tcp_fin_timeout=tmp;
        printf(&quot;done, sysctl_tcp_fin_timeout=%d\n&quot;, $sysctl_tcp_fin_timeout);
        exit();
}

probe procfs(&quot;sysctl_tcp_fin_timeout&quot;).write
{
        tmp=strtol($value, 10);
        printf(&quot;sysctl_tcp_fin_timeout will be set to %d\n&quot;, tmp);
}

[root@localhost ~]# stap -m test -g test.stp

#在另外的shell下运行
[root@localhost ~]# echo 18000&gt;/proc/systemtap/test/sysctl_tcp_fin_timeout 
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>

