[PATCH v6] Implement -e trace=%statfs option for tracing statfs like syscalls

Abhishek Tiwari erabhishektiwarics at gmail.com
Wed Mar 29 10:01:42 UTC 2017


On Wed, Mar 29, 2017 at 4:50 AM, Dmitry V. Levin <ldv at altlinux.org> wrote:
> On Tue, Mar 28, 2017 at 09:40:48AM +0530, Abhishek Tiwari wrote:
>> >> Sir,
>> >> the statfs64.test file calls the statfs.test itself.
>> >> On adding 17 statfs64 to my test file gives error
>> >>
>> >> undefined: __NR_statfs64
>> > This is quite possible on 64-bit architectures, as they have no need in
>> > a separate syscall for retrieving some 64-bit values (like st_size and
>> > st_blocks).
>> >
>> >> Is adding following entries correct ?
>> > Not really.
>> >
>> >> In file tests/scno.h:
>> >>
>> >> #ifndef __NR_statfs
>> >> # define __NR_statfs64 (SYSCALL_BIT | 332 )
>> > Note that this file is generated (as it is stated in its header), as it
>> > is ABI-dependent.
>> >
>> >> Is adding it to last entry fine ?
>> >>
>> >> In file tests/ksysent.h:
>> >>
>> >> #ifdef __NR_statfs
>> >> [__NR_statfs64 & 0xffff] = "statfs64",
>> >>
>>
>> Sir, how to overcome error to test for statfs64 ?
>
> Why do you insist on testing a syscall on an architecture that
> neither declares nor implements it?
>
>
> --
> ldv
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Strace-devel mailing list
> Strace-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/strace-devel
>

I wanted to test it where statfs64 is required. Travis will do that work ?

Patch is attached for statfs class i.e. tracing statfs, statfs64 and
statvfs. It should be applied after bug fix of alpha and mips stat
syscalls. Please review.

-- 
Abhishek Tiwari
M.Tech (CS),
IIT Kharagpur.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: v7-0001-Implement-e-trace-statfs-option-to-trace-and-grou.patch
Type: text/x-patch
Size: 36144 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20170329/ec510223/attachment.bin>


More information about the Strace-devel mailing list