This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: [PATCH 1/2] Add str_replace() To Tapsets
- From: Josh Stone <jistone at redhat dot com>
- To: Varun Chandramohan <varunc at linux dot vnet dot ibm dot com>
- Cc: systemtap at sourceware dot org, "Frank Ch. Eigler" <fche at redhat dot com>
- Date: Mon, 22 Jun 2009 14:49:09 -0700
- Subject: Re: [PATCH 1/2] Add str_replace() To Tapsets
- References: <20090620093754.d8b7473d.varunc@linux.vnet.ibm.com>
On 06/19/2009 09:07 PM, Varun Chandramohan wrote:
> This patch adds a search and replace string functionality to existing tapsets.
>
> The functionality is as follows:
>
> The function takes in a parent string and searches for a substring as specified by the user. If substing not found, the parent string is returned. If substring is found, it is replaced by another string and returned.
> NOTE: The function will search and replace all the occurance of substrings in a parent string when matched.
>
> Signed-off-by: Varun Chandramohan <varunc@linux.vnet.ibm.com>
> ---
This and your testcase are now committed, thanks!
Josh