Hi - On Tue, Feb 12, 2008 at 10:20:10AM -0800, Andrew Morton wrote:Just for completeness, keep in mind that one can already do these sorts of things on a batch basis using systemtap: If "foo" is a global within a particular compliation unit, any old function in that CU can be probed to set/get the global. (Setting incoming function parameters works too.) # cat delayed-set.stp # set a systemtap script variable based on a /proc control file probe procfs("activate").write { setit = $value } global setit # check the systemtap global in order to set the kernel global probe kernel.function("foo_checking_fn") { if (setit=="1") { setit = ""; $foo = 1 } } # stap -g -m ds delayed-set.stp & # echo 1 > /proc/systemtap/ds/activate # cat setit2.stp probe kernel.statement("*@dir/function.c:222") { /*if (desired)*/ $foo = 0 } # stap -g setit2.stp & - FChE --
| David Miller | Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers. |
| Andrew Morton | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg Kroah-Hartman | [PATCH 010/196] Chinese: add translation of Codingstyle |
| Jan Engelhardt | intel iommu (Re: -mm merge plans for 2.6.23) |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| David Miller | Re: [GIT]: Networking |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Felix von Leitner | socket api problem: can't bind an ipv6 socket to ::ffff:0.0.0.0 |
git: | |
