[PATCH v8] Implement -e trace=%statfs option to trace and group statfs, statfs64, statvfs syscalls

Abhishek Tiwari erabhishektiwarics at gmail.com
Tue Apr 18 15:33:06 UTC 2017


On Fri, Apr 7, 2017 at 7:50 AM, Dmitry V. Levin <ldv at altlinux.org> wrote:
> On Sun, Apr 02, 2017 at 01:23:23AM +0530, Abhishek Tiwari wrote:
>> From 87ebbc9191c3b9c878674646d463ae7dcc6147a2 Mon Sep 17 00:00:00 2001
>> From: Abhishek Tiwari <erabhishektiwarics at gmail.com>
>> Date: Wed, 29 Mar 2017 14:33:34 +0530
>> Subject: [PATCH v8] Implement -e trace=%statfs option to trace statfs,
>>  statfs64 and statvfs syscalls
>>
>> linux/*/syscallent* part is modified automatically by:
>>
>>       git grep -Fl 'stat' linux/*/syscallent* | xargs sed -i \
>>         's/TF\(,[[:space:]]*SEN.*\((\|_\)statv\?fs\)\)/TF|TSF\1/'
>>
>> * sysent.h (TRACE_STATFS): New definition.
>> * syscall.c: Alias TSF to TRACE_STATFS around syscallent.h inclusion.
>> * linux/64/syscallent.h: Add TSF flag to trace statfs syscall.
>> * linux/aarch64/syscallent.h: Likewise.
>> * linux/x32/syscallent.h: Likewise.
>> * linux/x86_64/syscallent.h: Likewise.
>> * linux/mips/syscallent-n64.h: Likewise.
>> * linux/32/syscallent.h: Add TSF flag to trace statfs64 sycall.
>> * linux/mips/syscallent-compat.h: Add TSF flag to trace statfs and
>> statvfs syscalls.
>> * linux/alpha/syscallent.h: Add TSF flag to trace statfs and statfs64
>> syscalls.
>> * linux/arm/syscallent.h: Likewise.
>> * linux/avr32/syscallent.h: Likewise.
>> * linux/bfin/syscallent.h: Likewise.
>> * linux/crisv10/syscallent.h: Likewise.
>> * linux/hppa/syscallent.h: Likewise.
>> * linux/i386/syscallent.h: Likewise.
>> * linux/ia64/syscallent.h: Likewise.
>> * linux/m68k/syscallent.h: Likewise.
>> * linux/microblaze/syscallent.h: Likewise.
>> * linux/mips/syscallent-n32.h: Likewise.
>> * linux/mips/syscallent-o32.h: Likewise.
>> * linux/powerpc/syscallent.h: Likewise.
>> * linux/powerpc64/syscallent.h: Likewise.
>> * linux/s390/syscallent.h: Likewise.
>> * linux/s390x/syscallent.h: Likewise.
>> * linux/sh/syscallent.h: Likewise.
>> * linux/sh64/syscallent.h: Likewise.
>> * linux/sparc/syscallent.h: Likewise.
>> * linux/sparc64/syscallent.h: Likewise.
>> * linux/xtensa/syscallent.h: Likewise.
>> * qualify.c (lookup_class): Add SCHED_STATFS for "%statfs"
>> * strace.1 (.SS Filtering): Add information about %statfs syscall class.
>> * tests/Makefile.am (DECODER_TESTS): Add trace_statfs.test.
>> * tests/ksysent.c: Define TSF to 0.
>> * tests/nsyscalls.c: Likewise.
>> * tests/trace_statfs.test: New test.
>> * NEWS: Mention this change.
>
> The changelog is not ideal but very close.
>
> Thanks, I've merged the patch; trace_statfs.test has been rewritten
> to new infrastructure using sched.test as a template.
>
>
Thank you.

I'm having university exams till 30-Apr, so I would not be able to
give time during the period.


-- 
Abhishek Tiwari
M.Tech (CS),
IIT Kharagpur.




More information about the Strace-devel mailing list