From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5030 invoked by alias); 22 Jun 2009 21:49:15 -0000 Received: (qmail 5023 invoked by uid 22791); 22 Jun 2009 21:49:15 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 22 Jun 2009 21:49:09 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n5MLn7dT031102; Mon, 22 Jun 2009 17:49:07 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n5MLn59c022320; Mon, 22 Jun 2009 17:49:06 -0400 Received: from [10.14.54.191] (dhcp-191.sjc.redhat.com [10.14.54.191]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n5MLn44o001163; Mon, 22 Jun 2009 17:49:05 -0400 Message-ID: <4A3FFC55.1000203@redhat.com> Date: Mon, 22 Jun 2009 21:49:00 -0000 From: Josh Stone User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b5pre) Gecko/20090513 Fedora/3.0-2.4.b3pre.hg.6a6386c16e98.fc11 Lightning/1.0pre Thunderbird/3.0b3pre MIME-Version: 1.0 To: Varun Chandramohan CC: systemtap@sourceware.org, "Frank Ch. Eigler" Subject: Re: [PATCH 1/2] Add str_replace() To Tapsets References: <20090620093754.d8b7473d.varunc@linux.vnet.ibm.com> In-Reply-To: <20090620093754.d8b7473d.varunc@linux.vnet.ibm.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2009-q2/txt/msg01003.txt.bz2 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 > --- This and your testcase are now committed, thanks! Josh