]> granicus.if.org Git - strace/commitdiff
Implement -e trace=%fstatfs option
authorEugene Syromyatnikov <evgsyr@gmail.com>
Mon, 17 Apr 2017 18:29:44 +0000 (20:29 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 21 Apr 2017 19:49:03 +0000 (19:49 +0000)
linux/*/syscallent*.h part is updated automatically by:

    sed -i 's/TD,[[:space:]]\([[:space:]]*SEN.*[_"]fstatv\?fs\)/TD|TFSF,\1/' \
           linux/*/syscallent*.h

* sysent.h (TRACE_FSTATFS): New macro.
* syscall.c: Alias TFSF to TRACE_FSTATFS around syscallent.h inclusion.
* qualify.c (lookup_class): Add SCHED_FSTATFS for "%fstatfs".
* strace.1 (.SS Filtering): Add information about %fstatfs syscall class.
* NEWS: Mention this change.
* linux/32/syscallent.h (fstatfs64): Add TFSF flag.
* linux/64/syscallent.h (fstatfs): Likewise.
* linux/aarch64/syscallent.h: Likewise.
* linux/mips/syscallent-n64.h: Likewise.
* linux/x32/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
* linux/arm/syscallent.h (fstatfs, fstatfs64):
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.
* linux/alpha/syscallent.h (ofs_fstatfs, osf_fstatfs64): Likewise.
* linux/mips/syscallent-compat.h (*_fstatfs, *_fstatvfs): Likewise.
* tests/gen_tests.in (trace_fstatfs): New entry.
* tests/trace_fstatfs.in: New file.
* tests/Makefile.am (EXTRA_DIST): Add it.
* tests/ksysent.c (TFSF): New macro, defined to 0.
* tests/nsyscalls.c: Likewise.

38 files changed:
NEWS
linux/32/syscallent.h
linux/64/syscallent.h
linux/aarch64/syscallent.h
linux/alpha/syscallent.h
linux/arm/syscallent.h
linux/avr32/syscallent.h
linux/bfin/syscallent.h
linux/crisv10/syscallent.h
linux/hppa/syscallent.h
linux/i386/syscallent.h
linux/ia64/syscallent.h
linux/m68k/syscallent.h
linux/microblaze/syscallent.h
linux/mips/syscallent-compat.h
linux/mips/syscallent-n32.h
linux/mips/syscallent-n64.h
linux/mips/syscallent-o32.h
linux/powerpc/syscallent.h
linux/powerpc64/syscallent.h
linux/s390/syscallent.h
linux/s390x/syscallent.h
linux/sh/syscallent.h
linux/sh64/syscallent.h
linux/sparc/syscallent.h
linux/sparc64/syscallent.h
linux/x32/syscallent.h
linux/x86_64/syscallent.h
linux/xtensa/syscallent.h
qualify.c
strace.1
syscall.c
sysent.h
tests/Makefile.am
tests/gen_tests.in
tests/ksysent.c
tests/nsyscalls.c
tests/trace_fstatfs.in [new file with mode: 0644]

diff --git a/NEWS b/NEWS
index 12cc5932831378a426299e724f629ef732f783cd..8e4a42ffce7d26ee0b285b1c0b6a92d72c8b1fdf 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -11,6 +11,8 @@ Noteworthy changes in release ?.?? (????-??-??)
   * Enhanced decoding of sched_setattr syscall.
   * Added -e trace=%statfs option for tracing statfs, statfs64 and statvfs
     syscalls.
+  * Added -e trace=%fstatfs option for tracing fstatfs, fstatfs64 and fstatvfs
+    syscalls.
   * Added -e trace=/regex option for filtering syscalls using regular
     expressions.
   * Implemented decoding of signal mask in rt_sigreturn syscall on alpha, arc,
index 7b609cbf48aee3ce3016b23741d242c14d11567e..8e3ec0ec12263cf9cf5d4158e60d99b53a907133 100644 (file)
@@ -45,7 +45,7 @@
 [ 41] = { 2,   TF,             SEN(pivotroot),                 "pivot_root"            },
 [ 42] = { 3,   0,              SEN(nfsservctl),                "nfsservctl"            },
 [ 43] = { 3,   TF|TSF,         SEN(statfs64),                  "statfs64"              },
-[ 44] = { 3,   TD,             SEN(fstatfs64),                 "fstatfs64"             },
+[ 44] = { 3,   TD|TFSF,        SEN(fstatfs64),                 "fstatfs64"             },
 [ 45] = { 3,   TF,             SEN(truncate64),                "truncate64"            },
 [ 46] = { 3,   TD,             SEN(ftruncate64),               "ftruncate64"           },
 [ 47] = { 6,   TD,             SEN(fallocate),                 "fallocate"             },
index d137d2460fa2488d7ac18cf368d5949d8128cf9b..b7da8840b66b8ddbf0e1f83943d81077a4855a35 100644 (file)
@@ -42,7 +42,7 @@
 [ 41] = { 2,   TF,             SEN(pivotroot),                 "pivot_root"            },
 [ 42] = { 3,   0,              SEN(nfsservctl),                "nfsservctl"            },
 [ 43] = { 2,   TF|TSF,         SEN(statfs),                    "statfs"                },
-[ 44] = { 2,   TD,             SEN(fstatfs),                   "fstatfs"               },
+[ 44] = { 2,   TD|TFSF,        SEN(fstatfs),                   "fstatfs"               },
 [ 45] = { 2,   TF,             SEN(truncate),                  "truncate"              },
 [ 46] = { 2,   TD,             SEN(ftruncate),                 "ftruncate"             },
 [ 47] = { 4,   TD,             SEN(fallocate),                 "fallocate"             },
index e760fdc49034040f88228593f4d7371d42888e0b..b98bd61aa59c8bbb67fae40dd11484b361a40e5e 100644 (file)
@@ -44,7 +44,7 @@
 [1052] = { 3,  TD,             SEN(fcntl),             "fcntl"         },
 [1053] = { 4,  TD,             SEN(fadvise64),         "fadvise64"     },
 [1054] = { 4,  TD|TF,          SEN(newfstatat),        "newfstatat"    },
-[1055] = { 2,  TD,             SEN(fstatfs),           "fstatfs"       },
+[1055] = { 2,  TD|TFSF,        SEN(fstatfs),           "fstatfs"       },
 [1056] = { 2,  TF|TSF,         SEN(statfs),            "statfs"        },
 [1057] = { 3,  TD,             SEN(lseek),             "lseek"         },
 [1058] = { 6,  TD|TM|SI,       SEN(mmap),              "mmap"          },
index 8ec07c2e055ac26d68c0297e0a37beca9ec5c5fa..8c641a9cc834729a0b07940a1cdab4dfe794c419 100644 (file)
 [158] = { 5,   0,              SEN(printargs),                 "osf_nfssvc"            }, /* not implemented */
 [159] = { 4,   0,              SEN(printargs),                 "osf_getdirentries"     },
 [160] = { 3,   TF|TSF,         SEN(osf_statfs),                "osf_statfs"            },
-[161] = { 3,   TD,             SEN(osf_fstatfs),               "osf_fstatfs"           },
+[161] = { 3,   TD|TFSF,        SEN(osf_fstatfs),               "osf_fstatfs"           },
 [162] = { },
 [163] = { 5,   0,              SEN(printargs),                 "osf_asynch_daemon"     }, /* not implemented */
 [164] = { 5,   0,              SEN(printargs),                 "osf_getfh"             }, /* not implemented */
 [225] = { 2,   TF,             SEN(printargs),                 "osf_lstat"             },
 [226] = { 2,   TD,             SEN(printargs),                 "osf_fstat"             },
 [227] = { 3,   TF|TSF,         SEN(osf_statfs),                "osf_statfs64"          },
-[228] = { 3,   TD,             SEN(osf_fstatfs),               "osf_fstatfs64"         },
+[228] = { 3,   TD|TFSF,        SEN(osf_fstatfs),               "osf_fstatfs64"         },
 [229 ... 232] = { },
 [233] = { 1,   0,              SEN(getpgid),                   "getpgid"               },
 [234] = { 1,   0,              SEN(getsid),                    "getsid"                },
 [326] = { 1,   NF,             SEN(setfsgid),                  "setfsgid"              },
 [327] = { 2,   0,              SEN(ustat),                     "ustat"                 },
 [328] = { 2,   TF|TSF,         SEN(statfs),                    "statfs"                },
-[329] = { 2,   TD,             SEN(fstatfs),                   "fstatfs"               },
+[329] = { 2,   TD|TFSF,        SEN(fstatfs),                   "fstatfs"               },
 [330] = { 2,   0,              SEN(sched_setparam),            "sched_setparam"        },
 [331] = { 2,   0,              SEN(sched_getparam),            "sched_getparam"        },
 [332] = { 3,   0,              SEN(sched_setscheduler),        "sched_setscheduler"    },
index a74d7ac5bf7fa94a60fa4de260c9e2c9f45e0acf..ec787806c4708cfe9a8d1c614115b069c9e7c2da 100644 (file)
 [ 97] = { 3,   0,              SEN(setpriority),               "setpriority"           },
 [ 98] = { 4,   0,              SEN(profil),                    "profil"                },
 [ 99] = { 2,   TF|TSF,         SEN(statfs),                    "statfs"                },
-[100] = { 2,   TD,             SEN(fstatfs),                   "fstatfs"               },
+[100] = { 2,   TD|TFSF,        SEN(fstatfs),                   "fstatfs"               },
 [101] = { 3,   0,              SEN(ioperm),                    "ioperm"                },
 [102] = { 2,   TD,             SEN(socketcall),                "socketcall"            },
 [103] = { 3,   0,              SEN(syslog),                    "syslog"                },
 [264] = { 2,   0,              SEN(clock_getres),              "clock_getres"          },
 [265] = { 4,   0,              SEN(clock_nanosleep),           "clock_nanosleep"       },
 [266] = { 3,   TF|TSF,         SEN(statfs64),                  "statfs64"              },
-[267] = { 3,   TD,             SEN(fstatfs64),                 "fstatfs64"             },
+[267] = { 3,   TD|TFSF,        SEN(fstatfs64),                 "fstatfs64"             },
 [268] = { 3,   TS,             SEN(tgkill),                    "tgkill"                },
 [269] = { 2,   TF,             SEN(utimes),                    "utimes"                },
 [270] = { 6,   TD,             SEN(fadvise64_64),              "fadvise64_64"          },
index cbf9ae0a313e993ba518a935783f2cf8e1e3a0a6..5a6e556ad5248776ffbe042e6d2ab0c7dbda51c4 100644 (file)
 [ 97] = { 3,   0,              SEN(setpriority),               "setpriority"           },
 [ 98] = { 4,   TP,             SEN(wait4),                     "wait4"                 },
 [ 99] = { 2,   TF|TSF,         SEN(statfs),                    "statfs"                },
-[100] = { 2,   TD,             SEN(fstatfs),                   "fstatfs"               },
+[100] = { 2,   TD|TFSF,        SEN(fstatfs),                   "fstatfs"               },
 [101] = { 0,   0,              SEN(vhangup),                   "vhangup"               },
 [102] = { 2,   TS,             SEN(sigaltstack),               "sigaltstack"           },
 [103] = { 3,   0,              SEN(syslog),                    "syslog"                },
 [217] = { 2,   0,              SEN(clock_getres),              "clock_getres"          },
 [218] = { 4,   0,              SEN(clock_nanosleep),           "clock_nanosleep"       },
 [219] = { 3,   TF|TSF,         SEN(statfs64),                  "statfs64"              },
-[220] = { 3,   TD,             SEN(fstatfs64),                 "fstatfs64"             },
+[220] = { 3,   TD|TFSF,        SEN(fstatfs64),                 "fstatfs64"             },
 [221] = { 3,   TS,             SEN(tgkill),                    "tgkill"                },
 [222] = { },
 [223] = { 2,   TF,             SEN(utimes),                    "utimes"                },
index 5d80b1b352de846b359ed03e77e536c837d1bb17..d2d4bfc48c59c499d45d5653e6d0ea954b56a1bc 100644 (file)
 [ 97] = { 3,   0,              SEN(setpriority),               "setpriority"           },
 [ 98] = { 4,   0,              SEN(profil),                    "profil"                },
 [ 99] = { 2,   TF|TSF,         SEN(statfs),                    "statfs"                },
-[100] = { 2,   TD,             SEN(fstatfs),                   "fstatfs"               },
+[100] = { 2,   TD|TFSF,        SEN(fstatfs),                   "fstatfs"               },
 [101] = { 3,   0,              SEN(ioperm),                    "ioperm"                },
 [102] = { 2,   TD,             SEN(socketcall),                "socketcall"            },
 [103] = { 3,   0,              SEN(syslog),                    "syslog"                },
 [267] = { 2,   0,              SEN(clock_getres),              "clock_getres"          },
 [268] = { 4,   0,              SEN(clock_nanosleep),           "clock_nanosleep"       },
 [269] = { 3,   TF|TSF,         SEN(statfs64),                  "statfs64"              },
-[270] = { 3,   TD,             SEN(fstatfs64),                 "fstatfs64"             },
+[270] = { 3,   TD|TFSF,        SEN(fstatfs64),                 "fstatfs64"             },
 [271] = { 3,   TS,             SEN(tgkill),                    "tgkill"                },
 [272] = { 2,   TF,             SEN(utimes),                    "utimes"                },
 [273] = { 6,   TD,             SEN(fadvise64_64),              "fadvise64_64"          },
index d55df80fe83328a6966933cbe2ed610e686cf587..de3e1f2622d15f34bb72fc9b8c673f45be6672b5 100644 (file)
@@ -98,7 +98,7 @@
 [ 97] = { 3,   0,              SEN(setpriority),               "setpriority"           },
 [ 98] = { 4,   0,              SEN(profil),                    "profil"                },
 [ 99] = { 2,   TF|TSF,         SEN(statfs),                    "statfs"                },
-[100] = { 2,   TD,             SEN(fstatfs),                   "fstatfs"               },
+[100] = { 2,   TD|TFSF,        SEN(fstatfs),                   "fstatfs"               },
 [101] = { 3,   0,              SEN(ioperm),                    "ioperm"                },
 [102] = { 2,   TD,             SEN(socketcall),                "socketcall"            },
 [103] = { 3,   0,              SEN(syslog),                    "syslog"                },
 [266] = { 2,   0,              SEN(clock_getres),              "clock_getres"          },
 [267] = { 4,   0,              SEN(clock_nanosleep),           "clock_nanosleep"       },
 [268] = { 3,   TF|TSF,         SEN(statfs64),                  "statfs64"              },
-[269] = { 3,   TD,             SEN(fstatfs64),                 "fstatfs64"             },
+[269] = { 3,   TD|TFSF,        SEN(fstatfs64),                 "fstatfs64"             },
 [270] = { 3,   TS,             SEN(tgkill),                    "tgkill"                },
 [271] = { 2,   TF,             SEN(utimes),                    "utimes"                },
 [272] = { 6,   TD,             SEN(fadvise64_64),              "fadvise64_64"          },
index c1c527dea2e8841e68a4d06a5787b0c3163c4a50..fc461c21bde9a75ec67134f348faca6cb0b19f86 100644 (file)
 [ 97] = { 3,   0,              SEN(setpriority),               "setpriority"           },
 [ 98] = { 4,   TN,             SEN(recv),                      "recv"                  },
 [ 99] = { 2,   TF|TSF,         SEN(statfs),                    "statfs"                },
-[100] = { 2,   TD,             SEN(fstatfs),                   "fstatfs"               },
+[100] = { 2,   TD|TFSF,        SEN(fstatfs),                   "fstatfs"               },
 [101] = { 2,   TF,             SEN(stat64),                    "stat64"                },
 [102] = { },
 [103] = { 3,   0,              SEN(syslog),                    "syslog"                },
 [296] = { 3,   0,              SEN(getcpu),                    "getcpu"                },
 [297] = { 6,   TD,             SEN(epoll_pwait),               "epoll_pwait"           },
 [298] = { 3,   TF|TSF,         SEN(statfs64),                  "statfs64"              },
-[299] = { 3,   TD,             SEN(fstatfs64),                 "fstatfs64"             },
+[299] = { 3,   TD|TFSF,        SEN(fstatfs64),                 "fstatfs64"             },
 [300] = { 4,   0,              SEN(kexec_load),                "kexec_load"            },
 [301] = { 4,   TD|TF,          SEN(utimensat),                 "utimensat"             },
 [302] = { 3,   TD|TS,          SEN(signalfd),                  "signalfd"              },
index 8309a75f1d6d016b86941b11b1e38be4ebd9775d..ed53742c1dd86181a8577c26f4f62357f8b28e2c 100644 (file)
 [ 97] = { 3,   0,              SEN(setpriority),               "setpriority"           },
 [ 98] = { 4,   0,              SEN(profil),                    "profil"                },
 [ 99] = { 2,   TF|TSF,         SEN(statfs),                    "statfs"                },
-[100] = { 2,   TD,             SEN(fstatfs),                   "fstatfs"               },
+[100] = { 2,   TD|TFSF,        SEN(fstatfs),                   "fstatfs"               },
 [101] = { 3,   0,              SEN(ioperm),                    "ioperm"                },
 [102] = { 2,   TD,             SEN(socketcall),                "socketcall"            },
 [103] = { 3,   0,              SEN(syslog),                    "syslog"                },
 [266] = { 2,   0,              SEN(clock_getres),              "clock_getres"          },
 [267] = { 4,   0,              SEN(clock_nanosleep),           "clock_nanosleep"       },
 [268] = { 3,   TF|TSF,         SEN(statfs64),                  "statfs64"              },
-[269] = { 3,   TD,             SEN(fstatfs64),                 "fstatfs64"             },
+[269] = { 3,   TD|TFSF,        SEN(fstatfs64),                 "fstatfs64"             },
 [270] = { 3,   TS,             SEN(tgkill),                    "tgkill"                },
 [271] = { 2,   TF,             SEN(utimes),                    "utimes"                },
 [272] = { 6,   TD,             SEN(fadvise64_64),              "fadvise64_64"          },
index c4e68c612a510be1968f77f708495446b06fd069..4db26faea7d7b676f87ef6803fe49681c6981e43 100644 (file)
 [1101] = { 2,  0,              SEN(getpriority),               "getpriority"           },
 [1102] = { 3,  0,              SEN(setpriority),               "setpriority"           },
 [1103] = { 2,  TF|TSF,         SEN(statfs),                    "statfs"                },
-[1104] = { 2,  TD,             SEN(fstatfs),                   "fstatfs"               },
+[1104] = { 2,  TD|TFSF,        SEN(fstatfs),                   "fstatfs"               },
 [1105] = { 0,  NF,             SEN(gettid),                    "gettid"                },
 [1106] = { 3,  TI,             SEN(semget),                    "semget"                },
 [1107] = { 3,  TI,             SEN(semop),                     "semop"                 },
 [1254] = { 2,  0,              SEN(clock_gettime),             "clock_gettime"         },
 [1255] = { 2,  0,              SEN(clock_getres),              "clock_getres"          },
 [1256] = { 4,  0,              SEN(clock_nanosleep),           "clock_nanosleep"       },
-[1257] = { 3,  TD,             SEN(fstatfs64),                 "fstatfs64"             },
+[1257] = { 3,  TD|TFSF,        SEN(fstatfs64),                 "fstatfs64"             },
 [1258] = { 3,  TF|TSF,         SEN(statfs64),                  "statfs64"              },
 [1259] = { 6,  TM,             SEN(mbind),                     "mbind"                 },
 [1260] = { 5,  TM,             SEN(get_mempolicy),             "get_mempolicy"         },
index abde584bb0d43affbd98cb7bb83af54bee2c380c..9726f83695e94f4441f6e86937275e8e6314152d 100644 (file)
 [ 97] = { 3,   0,              SEN(setpriority),               "setpriority"           },
 [ 98] = { 4,   0,              SEN(profil),                    "profil"                },
 [ 99] = { 2,   TF|TSF,         SEN(statfs),                    "statfs"                },
-[100] = { 2,   TD,             SEN(fstatfs),                   "fstatfs"               },
+[100] = { 2,   TD|TFSF,        SEN(fstatfs),                   "fstatfs"               },
 [101] = { 3,   0,              SEN(ioperm),                    "ioperm"                },
 [102] = { 2,   TD,             SEN(socketcall),                "socketcall"            },
 [103] = { 3,   0,              SEN(syslog),                    "syslog"                },
 [261] = { 2,   0,              SEN(clock_getres),              "clock_getres"          },
 [262] = { 4,   0,              SEN(clock_nanosleep),           "clock_nanosleep"       },
 [263] = { 3,   TF|TSF,         SEN(statfs64),                  "statfs64"              },
-[264] = { 3,   TD,             SEN(fstatfs64),                 "fstatfs64"             },
+[264] = { 3,   TD|TFSF,        SEN(fstatfs64),                 "fstatfs64"             },
 [265] = { 3,   TS,             SEN(tgkill),                    "tgkill"                },
 [266] = { 2,   TF,             SEN(utimes),                    "utimes"                },
 [267] = { 6,   TD,             SEN(fadvise64_64),              "fadvise64_64"          },
index b1877acf1809f5784392215c69f375ae6379b8f7..c1e937d4b74090a4aa82fd2d729002ea474263cf 100644 (file)
 [ 97] = { 3,   0,              SEN(setpriority),               "setpriority"           },
 [ 98] = { 4,   0,              SEN(profil),                    "profil"                },
 [ 99] = { 2,   TF|TSF,         SEN(statfs),                    "statfs"                },
-[100] = { 2,   TD,             SEN(fstatfs),                   "fstatfs"               },
+[100] = { 2,   TD|TFSF,        SEN(fstatfs),                   "fstatfs"               },
 [101] = { 3,   0,              SEN(ioperm),                    "ioperm"                },
 [102] = { 2,   TD,             SEN(socketcall),                "socketcall"            },
 [103] = { 3,   0,              SEN(syslog),                    "syslog"                },
 [266] = { 2,   0,              SEN(clock_getres),              "clock_getres"          },
 [267] = { 4,   0,              SEN(clock_nanosleep),           "clock_nanosleep"       },
 [268] = { 3,   TF|TSF,         SEN(statfs64),                  "statfs64"              },
-[269] = { 3,   TD,             SEN(fstatfs64),                 "fstatfs64"             },
+[269] = { 3,   TD|TFSF,        SEN(fstatfs64),                 "fstatfs64"             },
 [270] = { 3,   TS,             SEN(tgkill),                    "tgkill"                },
 [271] = { 2,   TF,             SEN(utimes),                    "utimes"                },
 [272] = { 6,   TD,             SEN(fadvise64_64),              "fadvise64_64"          },
index c30b00c96a3fc19548e29ce2d8ba4cd9a772460c..b08b6bd1f6227a056fdf4e27e12aae4051c30092 100644 (file)
@@ -36,7 +36,7 @@
 [  35] = { 0,  TF|TSF, SEN(printargs),         "svr4_statfs"   },
 [  36] = { 0,  0,      SEN(printargs),         "svr4_sync"     },
 [  37] = { 0,  0,      SEN(printargs),         "svr4_kill"     },
-[  38] = { 0,  TD,     SEN(printargs),         "svr4_fstatfs"  },
+[  38] = { 0,  TD|TFSF,SEN(printargs),         "svr4_fstatfs"  },
 [  39] = { 0,  0,      SEN(printargs),         "svr4_setpgrp"  },
 [  40] = { 0,  0,      SEN(printargs),         "svr4_cxenix"   },
 [  41] = { 0,  0,      SEN(printargs),         "svr4_dup"      },
@@ -97,7 +97,7 @@
 [ 101] = { 0,  0,      SEN(printargs),         "svr4_evsys"    },
 [ 102] = { 0,  0,      SEN(printargs),         "svr4_evtrapret"        },
 [ 103] = { 0,  TF|TSF, SEN(printargs),         "svr4_statvfs"  },
-[ 104] = { 0,  TD,     SEN(printargs),         "svr4_fstatvfs" },
+[ 104] = { 0,  TD|TFSF,SEN(printargs),         "svr4_fstatvfs" },
 [ 105] = { },
 [ 106] = { 0,  0,      SEN(printargs),         "svr4_nfssys"   },
 [ 107] = { 0,  0,      SEN(printargs),         "svr4_waitid"   },
 [1035] = { 0,  TF|TSF, SEN(printargs),         "sysv_statfs"   },
 [1036] = { 0,  0,      SEN(printargs),         "sysv_sync"     },
 [1037] = { 0,  0,      SEN(printargs),         "sysv_kill"     },
-[1038] = { 0,  TD,     SEN(printargs),         "sysv_fstatfs"  },
+[1038] = { 0,  TD|TFSF,SEN(printargs),         "sysv_fstatfs"  },
 [1039] = { 0,  0,      SEN(printargs),         "sysv_setpgrp"  },
 [1040] = { 0,  0,      SEN(printargs),         "sysv_syssgi"   },
 [1041] = { 0,  0,      SEN(printargs),         "sysv_dup"      },
 [1172] = { 0,  0,      SEN(printargs),         "sysv_sigaltstack"      },
 [1173] = { 0,  0,      SEN(printargs),         "sysv_sigsendset"       },
 [1174] = { 0,  TF|TSF, SEN(printargs),         "sysv_statvfs"  },
-[1175] = { 0,  TD,     SEN(printargs),         "sysv_fstatvfs" },
+[1175] = { 0,  TD|TFSF,SEN(printargs),         "sysv_fstatvfs" },
 [1176] = { 0,  0,      SEN(printargs),         "sysv_getpmsg"  },
 [1177] = { 0,  0,      SEN(printargs),         "sysv_putpmsg"  },
 [1178] = { 0,  0,      SEN(printargs),         "sysv_lchown"   },
 [2158] = { 0,  0,      SEN(printargs),         "bsd43_nfs_svc" },
 [2159] = { 0,  0,      SEN(printargs),         "bsd43_getdirentries"   },
 [2160] = { 0,  TF|TSF, SEN(printargs),         "bsd43_statfs"  },
-[2161] = { 0,  TD,     SEN(printargs),         "bsd43_fstatfs" },
+[2161] = { 0,  TD|TFSF,SEN(printargs),         "bsd43_fstatfs" },
 [2162] = { 0,  0,      SEN(printargs),         "bsd43_unmount" },
 [2163] = { 0,  0,      SEN(printargs),         "bsd43_async_daemon"    },
 [2164] = { 0,  0,      SEN(printargs),         "bsd43_nfs_getfh"       },
 [3035] = { 0,  TF|TSF, SEN(printargs),         "posix_statfs"  },
 [3036] = { 0,  0,      SEN(printargs),         "posix_sync"    },
 [3037] = { 0,  0,      SEN(printargs),         "posix_kill"    },
-[3038] = { 0,  TD,     SEN(printargs),         "posix_fstatfs" },
+[3038] = { 0,  TD|TFSF,SEN(printargs),         "posix_fstatfs" },
 [3039] = { 0,  0,      SEN(printargs),         "posix_getpgrp" },
 [3040] = { 0,  0,      SEN(printargs),         "posix_syssgi"  },
 [3041] = { 0,  0,      SEN(printargs),         "posix_dup"     },
index 5d5ce9c230f4beee7d1f94c6267f94a5ce46eaa3..ba5f9a0f17334e8bb6c12168ba4c0f739086332d 100644 (file)
 [6132] = { 1,  NF,             SEN(personality),               "personality"           },
 [6133] = { 2,  0,              SEN(ustat),                     "ustat"                 },
 [6134] = { 2,  TF|TSF,         SEN(statfs),                    "statfs"                },
-[6135] = { 2,  TD,             SEN(fstatfs),                   "fstatfs"               },
+[6135] = { 2,  TD|TFSF,        SEN(fstatfs),                   "fstatfs"               },
 [6136] = { 3,  0,              SEN(sysfs),                     "sysfs"                 },
 [6137] = { 2,  0,              SEN(getpriority),               "getpriority"           },
 [6138] = { 3,  0,              SEN(setpriority),               "setpriority"           },
 [6215] = { 4,  TI,             SEN(semtimedop),                "semtimedop"            },
 [6216] = { 4,  TD,             SEN(fadvise64_64),              "fadvise64"             },
 [6217] = { 3,  TF|TSF,         SEN(statfs64),                  "statfs64"              },
-[6218] = { 3,  TD,             SEN(fstatfs64),                 "fstatfs64"             },
+[6218] = { 3,  TD|TFSF,        SEN(fstatfs64),                 "fstatfs64"             },
 [6219] = { 4,  TD|TN,          SEN(sendfile64),                "sendfile64"            },
 [6220] = { 3,  0,              SEN(timer_create),              "timer_create"          },
 [6221] = { 4,  0,              SEN(timer_settime),             "timer_settime"         },
index 271c7be6dd0d81544fa3aa210bd3132133792f04..e7c7202c3a7005a7d26e3620a2897cb21d6024ed 100644 (file)
 [5132] = { 1,  NF,             SEN(personality),               "personality"           },
 [5133] = { 2,  0,              SEN(ustat),                     "ustat"                 },
 [5134] = { 2,  TF|TSF,         SEN(statfs),                    "statfs"                },
-[5135] = { 2,  TD,             SEN(fstatfs),                   "fstatfs"               },
+[5135] = { 2,  TD|TFSF,        SEN(fstatfs),                   "fstatfs"               },
 [5136] = { 3,  0,              SEN(sysfs),                     "sysfs"                 },
 [5137] = { 2,  0,              SEN(getpriority),               "getpriority"           },
 [5138] = { 3,  0,              SEN(setpriority),               "setpriority"           },
index 1ba14935bdd142355d286874464da0f543ed5bc4..ebffcfc1ea94faacf982258b4de190f515eac97d 100644 (file)
 [4097] = { 3,  0,              SEN(setpriority),               "setpriority"           },
 [4098] = { 0,  0,              SEN(profil),                    "profil"                },
 [4099] = { 2,  TF|TSF,         SEN(statfs),                    "statfs"                },
-[4100] = { 2,  TD,             SEN(fstatfs),                   "fstatfs"               },
+[4100] = { 2,  TD|TFSF,        SEN(fstatfs),                   "fstatfs"               },
 [4101] = { 3,  0,              SEN(ioperm),                    "ioperm"                },
 [4102] = { 2,  TD,             SEN(socketcall),                "socketcall"            },
 [4103] = { 3,  0,              SEN(syslog),                    "syslog"                },
 [4253] = { 0,  0,              SEN(restart_syscall),           "restart_syscall"       },
 [4254] = { 7,  TD,             SEN(fadvise64_64),              "fadvise64"             },
 [4255] = { 3,  TF|TSF,         SEN(statfs64),                  "statfs64"              },
-[4256] = { 3,  TD,             SEN(fstatfs64),                 "fstatfs64"             },
+[4256] = { 3,  TD|TFSF,        SEN(fstatfs64),                 "fstatfs64"             },
 [4257] = { 3,  0,              SEN(timer_create),              "timer_create"          },
 [4258] = { 4,  0,              SEN(timer_settime),             "timer_settime"         },
 [4259] = { 2,  0,              SEN(timer_gettime),             "timer_gettime"         },
index dc8be61386dc22139c3a2679fb6e491e3673295a..5e0a6c94ef681ead274d3b51a63f8241aa90e8fa 100644 (file)
 [ 97] = { 3,   0,              SEN(setpriority),               "setpriority"           },
 [ 98] = { 4,   0,              SEN(profil),                    "profil"                },
 [ 99] = { 2,   TF|TSF,         SEN(statfs),                    "statfs"                },
-[100] = { 2,   TD,             SEN(fstatfs),                   "fstatfs"               },
+[100] = { 2,   TD|TFSF,        SEN(fstatfs),                   "fstatfs"               },
 [101] = { 3,   0,              SEN(ioperm),                    "ioperm"                },
 [102] = { 2,   TD,             SEN(socketcall),                "socketcall"            },
 [103] = { 3,   0,              SEN(syslog),                    "syslog"                },
 [250] = { 3,   TS,             SEN(tgkill),                    "tgkill"                },
 [251] = { 2,   TF,             SEN(utimes),                    "utimes"                },
 [252] = { 3,   TF|TSF,         SEN(statfs64),                  "statfs64"              },
-[253] = { 3,   TD,             SEN(fstatfs64),                 "fstatfs64"             },
+[253] = { 3,   TD|TFSF,        SEN(fstatfs64),                 "fstatfs64"             },
 [254] = { 6,   TD,             SEN(fadvise64_64),              "fadvise64_64"          },
 [255] = { 1,   0,              SEN(printargs),                 "rtas"                  },
 [256] = { 5,   0,              SEN(printargs),                 "sys_debug_setcontext"  },
index 3307be49c553dcac29243f3609a7d699f2671005..ee5fa8047b43fde0694737aef63cc07956fde353 100644 (file)
 [ 97] = { 3,   0,              SEN(setpriority),               "setpriority"           },
 [ 98] = { 4,   0,              SEN(profil),                    "profil"                },
 [ 99] = { 2,   TF|TSF,         SEN(statfs),                    "statfs"                },
-[100] = { 2,   TD,             SEN(fstatfs),                   "fstatfs"               },
+[100] = { 2,   TD|TFSF,        SEN(fstatfs),                   "fstatfs"               },
 [101] = { 3,   0,              SEN(ioperm),                    "ioperm"                },
 [102] = { 2,   TD,             SEN(socketcall),                "socketcall"            },
 [103] = { 3,   0,              SEN(syslog),                    "syslog"                },
 [250] = { 3,   TS,             SEN(tgkill),                    "tgkill"                },
 [251] = { 2,   TF,             SEN(utimes),                    "utimes"                },
 [252] = { 3,   TF|TSF,         SEN(statfs64),                  "statfs64"              },
-[253] = { 3,   TD,             SEN(fstatfs64),                 "fstatfs64"             },
+[253] = { 3,   TD|TFSF,        SEN(fstatfs64),                 "fstatfs64"             },
 [254] = { },
 [255] = { 1,   0,              SEN(printargs),                 "rtas"                  },
 [256] = { 5,   0,              SEN(printargs),                 "sys_debug_setcontext"  },
index 805756dfbabab528b0034b49605d8c3a4991d5ad..9d22b1002b08eeae85a3d7ddee20f05fa4802e06 100644 (file)
 [ 97] = { 3,   0,              SEN(setpriority),               "setpriority"           },
 [ 98] = { },
 [ 99] = { 2,   TF|TSF,         SEN(statfs),                    "statfs"                },
-[100] = { 2,   TD,             SEN(fstatfs),                   "fstatfs"               },
+[100] = { 2,   TD|TFSF,        SEN(fstatfs),                   "fstatfs"               },
 [101] = { 3,   0,              SEN(ioperm),                    "ioperm"                },
 [102] = { 2,   TD,             SEN(socketcall),                "socketcall"            },
 [103] = { 3,   0,              SEN(syslog),                    "syslog"                },
 [263] = { 5,   0,              SEN(vserver),                   "vserver"               },
 [264] = { 6,   TD,             SEN(fadvise64_64),              "fadvise64_64"          },
 [265] = { 3,   TF|TSF,         SEN(statfs64),                  "statfs64"              },
-[266] = { 3,   TD,             SEN(fstatfs64),                 "fstatfs64"             },
+[266] = { 3,   TD|TFSF,        SEN(fstatfs64),                 "fstatfs64"             },
 [267] = { 5,   TM|SI,          SEN(remap_file_pages),          "remap_file_pages"      },
 [268] = { 6,   TM,             SEN(mbind),                     "mbind"                 },
 [269] = { 5,   TM,             SEN(get_mempolicy),             "get_mempolicy"         },
index 67fb0ee008c543fb4a88767d4b3695156c5a7c46..16343a016a2bebce79304ddf3028e58189e8358b 100644 (file)
 [ 97] = { 3,   0,              SEN(setpriority),               "setpriority"           },
 [ 98] = { },
 [ 99] = { 2,   TF|TSF,         SEN(statfs),                    "statfs"                },
-[100] = { 2,   TD,             SEN(fstatfs),                   "fstatfs"               },
+[100] = { 2,   TD|TFSF,        SEN(fstatfs),                   "fstatfs"               },
 [101] = { },
 [102] = { 2,   TD,             SEN(socketcall),                "socketcall"            },
 [103] = { 3,   0,              SEN(syslog),                    "syslog"                },
 [263] = { 5,   0,              SEN(vserver),                   "vserver"               },
 [264] = { },
 [265] = { 3,   TF|TSF,         SEN(statfs64),                  "statfs64"              },
-[266] = { 3,   TD,             SEN(fstatfs64),                 "fstatfs64"             },
+[266] = { 3,   TD|TFSF,        SEN(fstatfs64),                 "fstatfs64"             },
 [267] = { 5,   TM|SI,          SEN(remap_file_pages),          "remap_file_pages"      },
 [268] = { 6,   TM,             SEN(mbind),                     "mbind"                 },
 [269] = { 5,   TM,             SEN(get_mempolicy),             "get_mempolicy"         },
index 53f44a4d69e45d0d40742ced83cc3ab6eacd4d57..8206ea19569483f0eee126c23ea4fb0ba8152bc2 100644 (file)
 [ 97] = { 3,   0,              SEN(setpriority),               "setpriority"           },
 [ 98] = { 4,   0,              SEN(profil),                    "profil"                },
 [ 99] = { 2,   TF|TSF,         SEN(statfs),                    "statfs"                },
-[100] = { 2,   TD,             SEN(fstatfs),                   "fstatfs"               },
+[100] = { 2,   TD|TFSF,        SEN(fstatfs),                   "fstatfs"               },
 [101] = { 3,   0,              SEN(ioperm),                    "ioperm"                },
 [102] = { 2,   TD,             SEN(socketcall),                "socketcall"            },
 [103] = { 3,   0,              SEN(syslog),                    "syslog"                },
 [266] = { 2,   0,              SEN(clock_getres),              "clock_getres"          },
 [267] = { 4,   0,              SEN(clock_nanosleep),           "clock_nanosleep"       },
 [268] = { 3,   TF|TSF,         SEN(statfs64),                  "statfs64"              },
-[269] = { 3,   TD,             SEN(fstatfs64),                 "fstatfs64"             },
+[269] = { 3,   TD|TFSF,        SEN(fstatfs64),                 "fstatfs64"             },
 [270] = { 3,   TS,             SEN(tgkill),                    "tgkill"                },
 [271] = { 2,   TF,             SEN(utimes),                    "utimes"                },
 [272] = { 6,   TD,             SEN(fadvise64_64),              "fadvise64_64"          },
index 8a8f4cb65226d938dbd988ba7602ab893d8b4344..2499a6b6f8a97ef4f7590bf8c0e6c1b5a357b727 100644 (file)
 [ 97] = { 3,   0,              SEN(setpriority),               "setpriority"           },
 [ 98] = { 4,   0,              SEN(profil),                    "profil"                },
 [ 99] = { 2,   TF|TSF,         SEN(statfs),                    "statfs"                },
-[100] = { 2,   TD,             SEN(fstatfs),                   "fstatfs"               },
+[100] = { 2,   TD|TFSF,        SEN(fstatfs),                   "fstatfs"               },
 [101] = { 3,   0,              SEN(ioperm),                    "ioperm"                },
 [102] = { 2,   TD,             SEN(socketcall),                "socketcall"            },
 [103] = { 3,   0,              SEN(syslog),                    "syslog"                },
 [294] = { 2,   0,              SEN(clock_getres),              "clock_getres"          },
 [295] = { 4,   0,              SEN(clock_nanosleep),           "clock_nanosleep"       },
 [296] = { 3,   TF|TSF,         SEN(statfs64),                  "statfs64"              },
-[297] = { 3,   TD,             SEN(fstatfs64),                 "fstatfs64"             },
+[297] = { 3,   TD|TFSF,        SEN(fstatfs64),                 "fstatfs64"             },
 [298] = { 3,   TS,             SEN(tgkill),                    "tgkill"                },
 [299] = { 2,   TF,             SEN(utimes),                    "utimes"                },
 [300] = { 4,   TD,             SEN(fadvise64_64),              "fadvise64_64"          },
index 33361d46a98da60d62eb475c02ed11b03b31c634..07b6ce3b35046b8f4fdbf1ca9af14bc4c3ffd01c 100644 (file)
 [155] = { 3,   TD,             SEN(fcntl64),                   "fcntl64"               },
 [156] = { 2,   TD,             SEN(inotify_rm_watch),          "inotify_rm_watch"      },
 [157] = { 2,   TF|TSF,         SEN(statfs),                    "statfs"                },
-[158] = { 2,   TD,             SEN(fstatfs),                   "fstatfs"               },
+[158] = { 2,   TD|TFSF,        SEN(fstatfs),                   "fstatfs"               },
 [159] = { 1,   TF,             SEN(umount),                    "umount"                },
 [160] = { 3,   0,              SEN(sched_setaffinity),         "sched_set_affinity"    },
 [161] = { 3,   0,              SEN(sched_getaffinity),         "sched_get_affinity"    },
 [232] = { 6,   TD,             SEN(splice),                    "splice"                },
 [233] = { 1,   0,              SEN(stime),                     "stime"                 },
 [234] = { 3,   TF|TSF,         SEN(statfs64),                  "statfs64"              },
-[235] = { 3,   TD,             SEN(fstatfs64),                 "fstatfs64"             },
+[235] = { 3,   TD|TFSF,        SEN(fstatfs64),                 "fstatfs64"             },
 [236] = { 5,   TD,             SEN(llseek),                    "_llseek"               },
 [237] = { 2,   TM,             SEN(mlock),                     "mlock"                 },
 [238] = { 2,   TM,             SEN(munlock),                   "munlock"               },
index f7fbd4933848340e211bc73619b2f917ce1a905a..f77e40a076325ef92e7f4ad58791b3867e450261 100644 (file)
 [155] = { },
 [156] = { 2,   TD,             SEN(inotify_rm_watch),          "inotify_rm_watch"      },
 [157] = { 2,   TF|TSF,         SEN(statfs),                    "statfs"                },
-[158] = { 2,   TD,             SEN(fstatfs),                   "fstatfs"               },
+[158] = { 2,   TD|TFSF,        SEN(fstatfs),                   "fstatfs"               },
 [159] = { 1,   TF,             SEN(umount),                    "umount"                },
 [160] = { 3,   0,              SEN(sched_setaffinity),         "sched_set_affinity"    },
 [161] = { 3,   0,              SEN(sched_getaffinity),         "sched_get_affinity"    },
 [232] = { 6,   TD,             SEN(splice),                    "splice"                },
 [233] = { 1,   0,              SEN(stime),                     "stime"                 },
 [234] = { 3,   TF|TSF,         SEN(statfs64),                  "statfs64"              },
-[235] = { 3,   TD,             SEN(fstatfs64),                 "fstatfs64"             },
+[235] = { 3,   TD|TFSF,        SEN(fstatfs64),                 "fstatfs64"             },
 [236] = { 5,   TD,             SEN(llseek),                    "_llseek"               },
 [237] = { 2,   TM,             SEN(mlock),                     "mlock"                 },
 [238] = { 2,   TM,             SEN(munlock),                   "munlock"               },
index 6c2428a5e97f6e3f37050a7b655b802161262c51..bb24a7b153079a92f93f8ae4ea79a8e237d1dd0b 100644 (file)
 [135] = { 1,   NF,             SEN(personality),               "personality"           },
 [136] = { 2,   0,              SEN(ustat),                     "ustat"                 },
 [137] = { 2,   TF|TSF,         SEN(statfs),                    "statfs"                },
-[138] = { 2,   TD,             SEN(fstatfs),                   "fstatfs"               },
+[138] = { 2,   TD|TFSF,        SEN(fstatfs),                   "fstatfs"               },
 [139] = { 3,   0,              SEN(sysfs),                     "sysfs"                 },
 [140] = { 2,   0,              SEN(getpriority),               "getpriority"           },
 [141] = { 3,   0,              SEN(setpriority),               "setpriority"           },
index 9f3a664c3d5579dd161dd841ef606dce4c6fce38..b4862e827036be28416151be008ec7ed72ef7290 100644 (file)
 [135] = { 1,   NF,             SEN(personality),               "personality"           },
 [136] = { 2,   0,              SEN(ustat),                     "ustat"                 },
 [137] = { 2,   TF|TSF,         SEN(statfs),                    "statfs"                },
-[138] = { 2,   TD,             SEN(fstatfs),                   "fstatfs"               },
+[138] = { 2,   TD|TFSF,        SEN(fstatfs),                   "fstatfs"               },
 [139] = { 3,   0,              SEN(sysfs),                     "sysfs"                 },
 [140] = { 2,   0,              SEN(getpriority),               "getpriority"           },
 [141] = { 3,   0,              SEN(setpriority),               "setpriority"           },
index 4a8ccb602da49036b10dd68d3d54dd5d34b78aca..e84d8bbab000296a487bbf6c37abc8ad212d8478 100644 (file)
 [182] = { 3,   0,              SEN(sysfs),                     "sysfs"                 },
 [183] = { 2,   0,              SEN(ustat),                     "ustat"                 },
 [184] = { 2,   TF|TSF,         SEN(statfs),                    "statfs"                },
-[185] = { 2,   TD,             SEN(fstatfs),                   "fstatfs"               },
+[185] = { 2,   TD|TFSF,        SEN(fstatfs),                   "fstatfs"               },
 [186] = { 3,   TF|TSF,         SEN(statfs64),                  "statfs64"              },
-[187] = { 3,   TD,             SEN(fstatfs64),                 "fstatfs64"             },
+[187] = { 3,   TD|TFSF,        SEN(fstatfs64),                 "fstatfs64"             },
 [188] = { 2,   0,              SEN(setrlimit),                 "setrlimit"             },
 [189] = { 2,   0,              SEN(getrlimit),                 "getrlimit"             },
 [190] = { 2,   0,              SEN(getrusage),                 "getrusage"             },
index a13b169d5f91c6d2ab8871c876f0f1824e5d7924..5bd567626559ded72924d6b5513998861cb14232 100644 (file)
--- a/qualify.c
+++ b/qualify.c
@@ -263,6 +263,7 @@ lookup_class(const char *s)
                { "%ipc",       TRACE_IPC       },
                { "%network",   TRACE_NETWORK   },
                { "%statfs",    TRACE_STATFS    },
+               { "%fstatfs",   TRACE_FSTATFS   },
        };
 
        unsigned int i;
index 474a23208a9eff1155133d5898df7fbe6f4742d8..8fc74e4c4340283270aec172e04f1015b3fec26d 100644 (file)
--- a/strace.1
+++ b/strace.1
@@ -440,6 +440,12 @@ The same effect can be achieved with
 .BR "\-e\ trace" = /^(.*_)?statv?fs
 regular expression.
 .TP
+.BR "\-e\ trace" = %fstatfs
+Trace fstatfs, fstatfs64, fstatvfs, osf_fstatfs, and osf_fstatfs64 system calls.
+The same effect can be achieved with
+.BR "\-e\ trace" = /fstatv?fs
+regular expression.
+.TP
 \fB\-e\ abbrev\fR=\,\fIset\fR
 Abbreviate the output from printing each member of large structures.
 The default is
index 3e91880c956fa1924689dec90b562fc61e2802bd..c6de14f130c1a576c5446089092841b94155b71f 100644 (file)
--- a/syscall.c
+++ b/syscall.c
@@ -77,6 +77,7 @@
 #define TS TRACE_SIGNAL
 #define TM TRACE_MEMORY
 #define TSF TRACE_STATFS
+#define TFSF TRACE_FSTATFS
 #define NF SYSCALL_NEVER_FAILS
 #define MA MAX_ARGS
 #define SI STACKTRACE_INVALIDATE_CACHE
@@ -113,6 +114,7 @@ static const struct_sysent sysent2[] = {
 #undef TS
 #undef TM
 #undef TSF
+#undef TFSF
 #undef NF
 #undef MA
 #undef SI
index 538f81b756e1a6aac8253606c14d52ede96e1067..430037ee9a1311c14002507c714e1df14e5ed9ef 100644 (file)
--- a/sysent.h
+++ b/sysent.h
@@ -22,5 +22,6 @@ typedef struct sysent {
 #define TRACE_INDIRECT_SUBCALL         00002000        /* Syscall is an indirect socket/ipc subcall. */
 #define COMPAT_SYSCALL_TYPES           00004000        /* A compat syscall that uses compat types. */
 #define TRACE_STATFS                   00040000        /* Trace statfs, statfs64, and statvfs syscalls. */
+#define TRACE_FSTATFS                  00100000        /* Trace fstatfs, fstatfs64 and fstatvfs syscalls. */
 
 #endif /* !STRACE_SYSENT_H */
index ee708fd7e8fd7bc0837371dc55cdd48dc2726ed4..d5093f73193bb4d299c2d94898e0da597c1afd62 100644 (file)
@@ -336,6 +336,7 @@ EXTRA_DIST = \
        strace.supp \
        struct_flock.c \
        sun_path.expected \
+       trace_fstatfs.in \
        trace_statfs.in \
        uio.expected \
        umode_t.c \
index ddcb8f7d6433f93cc2ebd926d3e48a9cf6fd7e82..34d3a5da569023e1ab378aa2bcd09354acd2b228 100644 (file)
@@ -304,6 +304,7 @@ timer_xettime       -e trace=timer_create,timer_settime,timer_gettime
 timerfd_xettime        -e trace=timerfd_create,timerfd_settime,timerfd_gettime
 times  -esignal=none
 times-fail     -a12 -e trace=times
+trace_fstatfs  test_trace_expr '' -e%fstatfs
 trace_statfs   test_trace_expr '' -e%statfs
 truncate
 truncate64
index 47bfef4a9174b2d0ad7d9427691c4477e44b9387..ce198dedffe99f57985bc5b10c98eaf5e4cb5a4b 100644 (file)
@@ -41,6 +41,7 @@
 #define TS 0
 #define TM 0
 #define TSF 0
+#define TFSF 0
 #define NF 0
 #define MA 0
 #define SI 0
index 18eecf51303fc76b37ca7b67bd6c71f8341a1d2a..eaa9a0f7665b301dadf9e087a9b19cd6b8561f6b 100644 (file)
@@ -42,6 +42,7 @@
 #define TS 0
 #define TM 0
 #define TSF 0
+#define TFSF 0
 #define NF 0
 #define MA 0
 #define SI 0
diff --git a/tests/trace_fstatfs.in b/tests/trace_fstatfs.in
new file mode 100644 (file)
index 0000000..6441a07
--- /dev/null
@@ -0,0 +1,2 @@
+fstatfs        -a18
+fstatfs64      -a24