This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Heed help: Calling sys_getcwd to resolve relative pathnames from within systemtap
- From: Sebastian Pipping <sebastian at pipping dot org>
- To: systemtap at sourceware dot org
- Date: Wed, 05 Oct 2011 18:40:15 +0200
- Subject: Re: Heed help: Calling sys_getcwd to resolve relative pathnames from within systemtap
- References: <4E83BC3B.4080801@pipping.org> <4E85130A.5040207@redhat.com> <4E89DF19.9050708@pipping.org> <4E8B9BB8.1090901@redhat.com>
On 10/05/2011 01:50 AM, Josh Stone wrote:
> On 10/03/2011 09:13 AM, Sebastian Pipping wrote:
>> On 09/30/2011 02:53 AM, Josh Stone wrote:
>>> probe kernel.function("do_filp_open").return {
>>> if (errno_p($return)) {
>>> printf("%5d %5d %-16s %s %s\n",
>>> pid(), tid(), execname(), errno_str($return),
>>> kernel_string($pathname))
>>> } else {
>>> file = task_dentry_path(task_current(),
>>> $return->f_path->dentry,
>>> $return->f_path->mnt)
>>> printf("%5d %5d %-16s opened %s\n",
>>> pid(), tid(), execname(), file)
>>> }
>>> }
>>
>> PS: Can you state that abive code is licensed "GPL v2 or later"?
>> Right now it doesn't come with a license so publishing anything that
>> makes use of it would be rather difficult. Thanks!
>
> Sure, that code may be used under GPL v2 or later, to follow the rest of
> systemtap's code.
>
> I'd probably be willing to go even more liberal, for such a tiny code
> snippet, but GPL2+ is what you asked for... :)
>
> Josh
Thanks!
Sebastian