PR 194 - Print path for AT_FDCWD

Renaud Métrich rmetrich at redhat.com
Fri Sep 24 12:19:26 UTC 2021


The PR is ready for review, restarting the CI fixed the errors.
I still have one uncovered line, «get_proc_pid()» failing case, but I don't
see a way to test this using a standard program at all.

Renaud.

On Thursday, September 23, 2021, Masatake YAMATO <yamato at redhat.com> wrote:
>> Dear strace developers,
>>
>> I would like to propose an enhancement consisting in printing the
>> current working directory when having syscalls with AT_FDCWD
>> parameter, this would be enabled when -y is used.
>>
>> This feature would be very appreciated when digging into an strace
>> where the program makes heavy use of relative paths, which makes it a
>> big pain to get the path names.
>>
>> See https://github.com/strace/strace/pull/194 for details.
>
> I tired the change. It works fine. I like this feature.
>
> Masatake YAMATO
>
>> Note that 2 CI items are currently failing, they look like as
>> false-positive to me.
>>
>> Thanks,
>>
>> Renaud.
>>
>> On 9/18/21 19:24, Renaud Métrich wrote:
>>> That's indeed interesting feature, it's not rare that I need to know
>>> which dir curdir is as well. I think this could be implemented as a
>>> decoder to AT_CWD, e.g. AT_CWD</some/path>.
>>> I'll try working on this next week.
>>>
>>> On Thursday, September 9, 2021, Guy <galfandary at gmail.com> wrote:
>>> > Hi,
>>> >
>>> > I'm using strace to find dependencies of complex system processes.
>>> > A dependency for me is a file that is successfully accessed and that
>>> > was not previously created by the process.
>>> > The main missing piece is the ability to get the full path of the file
>>> > being accessed.
>>> > I added the equivalent of "pwdx pid" to the code.
>>> > The only problem is with those "at" calls which are relative to dirfd.
>>> > Still working on that one.
>>> >
>>> > I think it would be a nice enhancement to have an option to get the
>>> > full paths.
>>> >
>>> > Thanks,
>>> > Guy
>>> > --
>>> > Strace-devel mailing list
>>> > Strace-devel at lists.strace.io
>>> > https://lists.strace.io/mailman/listinfo/strace-devel
>>> >
>>> >
>>>
>>> --
>>> --
>>> Renaud
>>> Sent from my phone, sorry for the typos...
>
>

-- 
-- 
Renaud
Sent from my phone, sorry for the typos...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20210924/39f9439b/attachment.htm>


More information about the Strace-devel mailing list