This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Heed help: Calling sys_getcwd to resolve relative pathnames from within systemtap


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]