]> granicus.if.org Git - strace/commitdiff
Introduce a separate SEN entry for fstatat64 syscall
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 23 Aug 2016 14:27:49 +0000 (14:27 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 23 Aug 2016 15:06:34 +0000 (15:06 +0000)
* linux/dummy.h (sys_fstatat64): Redirect to sys_newfstatat.
* linux/32/syscallent.h: Replace SEN(newfstatat) with SEN(fstatat64).
* linux/alpha/syscallent.h: Likewise.
* linux/arm/syscallent.h: Likewise.
* linux/avr32/syscallent.h: Likewise.
* linux/bfin/syscallent.h: Likewise.
* linux/hppa/syscallent.h: Likewise.
* linux/i386/syscallent.h: Likewise.
* linux/m68k/syscallent.h: Likewise.
* linux/microblaze/syscallent.h: Likewise.
* linux/mips/syscallent-o32.h: Likewise.
* linux/powerpc/syscallent.h: Likewise.
* linux/s390/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.
* pathtrace.c (pathtrace_match): Handle SEN_fstatat64.

19 files changed:
linux/32/syscallent.h
linux/alpha/syscallent.h
linux/arm/syscallent.h
linux/avr32/syscallent.h
linux/bfin/syscallent.h
linux/dummy.h
linux/hppa/syscallent.h
linux/i386/syscallent.h
linux/m68k/syscallent.h
linux/microblaze/syscallent.h
linux/mips/syscallent-o32.h
linux/powerpc/syscallent.h
linux/s390/syscallent.h
linux/sh/syscallent.h
linux/sh64/syscallent.h
linux/sparc/syscallent.h
linux/sparc64/syscallent.h
linux/xtensa/syscallent.h
pathtrace.c

index 9c864855827ce43677d15fae3167ed09070ae0d9..7848c34d6d2a80f22d230ddd662510e9689156a6 100644 (file)
@@ -80,7 +80,7 @@
 [ 76] = { 6,   TD,             SEN(splice),                    "splice"                },
 [ 77] = { 4,   TD,             SEN(tee),                       "tee"                   },
 [ 78] = { 4,   TD|TF,          SEN(readlinkat),                "readlinkat"            },
-[ 79] = { 4,   TD|TF,          SEN(newfstatat),                "fstatat64"             },
+[ 79] = { 4,   TD|TF,          SEN(fstatat64),                 "fstatat64"             },
 [ 80] = { 2,   TD,             SEN(fstat64),                   "fstat64"               },
 [ 81] = { 0,   0,              SEN(sync),                      "sync"                  },
 [ 82] = { 1,   TD,             SEN(fsync),                     "fsync"                 },
index eaa316fdc259bb76cc4ae6cb1557c24cc56793cb..1c3bb548b8ae991279932acdd8311aecf7033a4f 100644 (file)
 [452] = { 4,   TD|TF,          SEN(mknodat),                   "mknodat"               },
 [453] = { 5,   TD|TF,          SEN(fchownat),                  "fchownat"              },
 [454] = { 3,   TD|TF,          SEN(futimesat),                 "futimesat"             },
-[455] = { 4,   TD|TF,          SEN(newfstatat),                "fstatat64"             },
+[455] = { 4,   TD|TF,          SEN(fstatat64),                 "fstatat64"             },
 [456] = { 3,   TD|TF,          SEN(unlinkat),                  "unlinkat"              },
 [457] = { 4,   TD|TF,          SEN(renameat),                  "renameat"              },
 [458] = { 5,   TD|TF,          SEN(linkat),                    "linkat"                },
index 18910e4ba9a126ca2a0a592993ece1ec320dfca4..75f37212fb2889750e5a89098a77d8b257d9df51 100644 (file)
 [324] = { 4,   TD|TF,          SEN(mknodat),                   "mknodat"               },
 [325] = { 5,   TD|TF,          SEN(fchownat),                  "fchownat"              },
 [326] = { 3,   TD|TF,          SEN(futimesat),                 "futimesat"             },
-[327] = { 4,   TD|TF,          SEN(newfstatat),                "fstatat64"             },
+[327] = { 4,   TD|TF,          SEN(fstatat64),                 "fstatat64"             },
 [328] = { 3,   TD|TF,          SEN(unlinkat),                  "unlinkat"              },
 [329] = { 4,   TD|TF,          SEN(renameat),                  "renameat"              },
 [330] = { 5,   TD|TF,          SEN(linkat),                    "linkat"                },
index 0b4ceac3de584dc2a35b081bc9eea173e73f72cb..9204c902beccc91d27f5711917dcd7ade044fd2f 100644 (file)
 [245] = { 4,   TD|TF,          SEN(mknodat),                   "mknodat"               },
 [246] = { 5,   TD|TF,          SEN(fchownat),                  "fchownat"              },
 [247] = { 3,   TD|TF,          SEN(futimesat),                 "futimesat"             },
-[248] = { 4,   TD|TF,          SEN(newfstatat),                "fstatat64"             },
+[248] = { 4,   TD|TF,          SEN(fstatat64),                 "fstatat64"             },
 [249] = { 3,   TD|TF,          SEN(unlinkat),                  "unlinkat"              },
 [250] = { 4,   TD|TF,          SEN(renameat),                  "renameat"              },
 [251] = { 5,   TD|TF,          SEN(linkat),                    "linkat"                },
index dd99fa6004677b17d8db02c76ef1763c68e6aad7..022596543134e47be14e9dbe6fb77de52f6fb68c 100644 (file)
 [297] = { 4,   TD|TF,          SEN(mknodat),                   "mknodat"               },
 [298] = { 5,   TD|TF,          SEN(fchownat),                  "fchownat"              },
 [299] = { 3,   TD|TF,          SEN(futimesat),                 "futimesat"             },
-[300] = { 4,   TD|TF,          SEN(newfstatat),                "fstatat64"             },
+[300] = { 4,   TD|TF,          SEN(fstatat64),                 "fstatat64"             },
 [301] = { 3,   TD|TF,          SEN(unlinkat),                  "unlinkat"              },
 [302] = { 4,   TD|TF,          SEN(renameat),                  "renameat"              },
 [303] = { 5,   TD|TF,          SEN(linkat),                    "linkat"                },
index 87d21277a3b54445350229f4a78be432203ee7b5..93a203463609789c020e603c2be03e2e2c5c84df 100644 (file)
@@ -59,6 +59,7 @@
 #define        sys_connect             sys_bind
 #define        sys_fchdir              sys_close
 #define        sys_fdatasync           sys_close
+#define        sys_fstatat64           sys_newfstatat
 #define        sys_fsync               sys_close
 #define        sys_getegid             sys_getuid
 #define        sys_getegid16           sys_geteuid16
index 49280479f3d4e599a996164d7020f70b1879c4fb..123bd03eb2656be3fbe12e14aeab5bcad8b1a95e 100644 (file)
 [277] = { 4,   TD|TF,          SEN(mknodat),                   "mknodat"               },
 [278] = { 5,   TD|TF,          SEN(fchownat),                  "fchownat"              },
 [279] = { 3,   TD|TF,          SEN(futimesat),                 "futimesat"             },
-[280] = { 4,   TD|TF,          SEN(newfstatat),                "fstatat64"             },
+[280] = { 4,   TD|TF,          SEN(fstatat64),                 "fstatat64"             },
 [281] = { 3,   TD|TF,          SEN(unlinkat),                  "unlinkat"              },
 [282] = { 4,   TD|TF,          SEN(renameat),                  "renameat"              },
 [283] = { 5,   TD|TF,          SEN(linkat),                    "linkat"                },
index d6175fae5460b74e58c960ca55dd73464b0c3e88..c0308c468ced2e7ac8c3e271c4989b3c8be583d0 100644 (file)
 [297] = { 4,   TD|TF,          SEN(mknodat),                   "mknodat"               },
 [298] = { 5,   TD|TF,          SEN(fchownat),                  "fchownat"              },
 [299] = { 3,   TD|TF,          SEN(futimesat),                 "futimesat"             },
-[300] = { 4,   TD|TF,          SEN(newfstatat),                "fstatat64"             },
+[300] = { 4,   TD|TF,          SEN(fstatat64),                 "fstatat64"             },
 [301] = { 3,   TD|TF,          SEN(unlinkat),                  "unlinkat"              },
 [302] = { 4,   TD|TF,          SEN(renameat),                  "renameat"              },
 [303] = { 5,   TD|TF,          SEN(linkat),                    "linkat"                },
index 0f4895c5d216d2a05685181786247dfc761cb68e..a98d27186d7147eeef8a28bfb31e984e89d9e9be 100644 (file)
 [290] = { 4,   TD|TF,          SEN(mknodat),                   "mknodat"               },
 [291] = { 5,   TD|TF,          SEN(fchownat),                  "fchownat"              },
 [292] = { 3,   TD|TF,          SEN(futimesat),                 "futimesat"             },
-[293] = { 4,   TD|TF,          SEN(newfstatat),                "fstatat64"             },
+[293] = { 4,   TD|TF,          SEN(fstatat64),                 "fstatat64"             },
 [294] = { 3,   TD|TF,          SEN(unlinkat),                  "unlinkat"              },
 [295] = { 4,   TD|TF,          SEN(renameat),                  "renameat"              },
 [296] = { 5,   TD|TF,          SEN(linkat),                    "linkat"                },
index 482e2757b4b948270d5a87c1c9873ef0b5dc48c1..f4f09a06170bb140e27d9661a97175675757f98c 100644 (file)
 [297] = { 4,   TD|TF,          SEN(mknodat),                   "mknodat"               },
 [298] = { 5,   TD|TF,          SEN(fchownat),                  "fchownat"              },
 [299] = { 3,   TD|TF,          SEN(futimesat),                 "futimesat"             },
-[300] = { 4,   TD|TF,          SEN(newfstatat),                "fstatat64"             },
+[300] = { 4,   TD|TF,          SEN(fstatat64),                 "fstatat64"             },
 [301] = { 3,   TD|TF,          SEN(unlinkat),                  "unlinkat"              },
 [302] = { 4,   TD|TF,          SEN(renameat),                  "renameat"              },
 [303] = { 5,   TD|TF,          SEN(linkat),                    "linkat"                },
index cb8afb963e235ea7baecbbc986cf59d65076dee1..965b32f2313f8a253291611042cff25af6e555a8 100644 (file)
 [4290] = { 4,  TD|TF,          SEN(mknodat),                   "mknodat"               },
 [4291] = { 5,  TD|TF,          SEN(fchownat),                  "fchownat"              },
 [4292] = { 3,  TD|TF,          SEN(futimesat),                 "futimesat"             },
-[4293] = { 4,  TD|TF,          SEN(newfstatat),                "fstatat64"             },
+[4293] = { 4,  TD|TF,          SEN(fstatat64),                 "fstatat64"             },
 [4294] = { 3,  TD|TF,          SEN(unlinkat),                  "unlinkat"              },
 [4295] = { 4,  TD|TF,          SEN(renameat),                  "renameat"              },
 [4296] = { 5,  TD|TF,          SEN(linkat),                    "linkat"                },
index b6dfb850a47849ae20bcdc39ed62ddb5ba6ed8d7..f67464967d68d6161a848e03efc18408fc840ecc 100644 (file)
 [288] = { 4,   TD|TF,          SEN(mknodat),                   "mknodat"               },
 [289] = { 5,   TD|TF,          SEN(fchownat),                  "fchownat"              },
 [290] = { 3,   TD|TF,          SEN(futimesat),                 "futimesat"             },
-[291] = { 4,   TD|TF,          SEN(newfstatat),                "fstatat64"             },
+[291] = { 4,   TD|TF,          SEN(fstatat64),                 "fstatat64"             },
 [292] = { 3,   TD|TF,          SEN(unlinkat),                  "unlinkat"              },
 [293] = { 4,   TD|TF,          SEN(renameat),                  "renameat"              },
 [294] = { 5,   TD|TF,          SEN(linkat),                    "linkat"                },
index fb5ddc1ceb477935f7b229b3ad84373fe9fafed3..87ece15739e3f3c9aba7d4716bf9d9d4fc8e5a45 100644 (file)
 [290] = { 4,   TD|TF,          SEN(mknodat),                   "mknodat"               },
 [291] = { 5,   TD|TF,          SEN(fchownat),                  "fchownat"              },
 [292] = { 3,   TD|TF,          SEN(futimesat),                 "futimesat"             },
-[293] = { 4,   TD|TF,          SEN(newfstatat),                "fstatat64"             },
+[293] = { 4,   TD|TF,          SEN(fstatat64),                 "fstatat64"             },
 [294] = { 3,   TD|TF,          SEN(unlinkat),                  "unlinkat"              },
 [295] = { 4,   TD|TF,          SEN(renameat),                  "renameat"              },
 [296] = { 5,   TD|TF,          SEN(linkat),                    "linkat"                },
index d2b462d55e16caccb6a6651d05e7dd2b808f6440..e4152a8eede09ae168508addc4e08d138e293f02 100644 (file)
 [297] = { 4,   TD|TF,          SEN(mknodat),                   "mknodat"               },
 [298] = { 5,   TD|TF,          SEN(fchownat),                  "fchownat"              },
 [299] = { 3,   TD|TF,          SEN(futimesat),                 "futimesat"             },
-[300] = { 4,   TD|TF,          SEN(newfstatat),                "fstatat64"             },
+[300] = { 4,   TD|TF,          SEN(fstatat64),                 "fstatat64"             },
 [301] = { 3,   TD|TF,          SEN(unlinkat),                  "unlinkat"              },
 [302] = { 4,   TD|TF,          SEN(renameat),                  "renameat"              },
 [303] = { 5,   TD|TF,          SEN(linkat),                    "linkat"                },
index 3504881450d38c7ffe01dbb5c0081790b3d7ba2e..f99743ac2e445e5ff46803ae3da6d4cb858a042d 100644 (file)
 [325] = { 4,   TD|TF,          SEN(mknodat),                   "mknodat"               },
 [326] = { 5,   TD|TF,          SEN(fchownat),                  "fchownat"              },
 [327] = { 3,   TD|TF,          SEN(futimesat),                 "futimesat"             },
-[328] = { 4,   TD|TF,          SEN(newfstatat),                "fstatat64"             },
+[328] = { 4,   TD|TF,          SEN(fstatat64),                 "fstatat64"             },
 [329] = { 3,   TD|TF,          SEN(unlinkat),                  "unlinkat"              },
 [330] = { 4,   TD|TF,          SEN(renameat),                  "renameat"              },
 [331] = { 5,   TD|TF,          SEN(linkat),                    "linkat"                },
index ec86f7e7292fd4fe480fd262a55f97c0169035b8..b2e51f304ec0fd64651084c3343183877d8154da 100644 (file)
 [286] = { 4,   TD|TF,          SEN(mknodat),                   "mknodat"               },
 [287] = { 5,   TD|TF,          SEN(fchownat),                  "fchownat"              },
 [288] = { 3,   TD|TF,          SEN(futimesat),                 "futimesat"             },
-[289] = { 4,   TD|TF,          SEN(newfstatat),                "fstatat64"             },
+[289] = { 4,   TD|TF,          SEN(fstatat64),                 "fstatat64"             },
 [290] = { 3,   TD|TF,          SEN(unlinkat),                  "unlinkat"              },
 [291] = { 4,   TD|TF,          SEN(renameat),                  "renameat"              },
 [292] = { 5,   TD|TF,          SEN(linkat),                    "linkat"                },
index 9bef6a6e413fcbf5892209ccb7c3b1862981a1d8..6f6b8c272bfb94769d99c1b699d1f546760db84f 100644 (file)
 [286] = { 4,   TD|TF,          SEN(mknodat),                   "mknodat"               },
 [287] = { 5,   TD|TF,          SEN(fchownat),                  "fchownat"              },
 [288] = { 3,   TD|TF,          SEN(futimesat),                 "futimesat"             },
-[289] = { 4,   TD|TF,          SEN(newfstatat),                "fstatat64"             },
+[289] = { 4,   TD|TF,          SEN(fstatat64),                 "fstatat64"             },
 [290] = { 3,   TD|TF,          SEN(unlinkat),                  "unlinkat"              },
 [291] = { 4,   TD|TF,          SEN(renameat),                  "renameat"              },
 [292] = { 5,   TD|TF,          SEN(linkat),                    "linkat"                },
index ffb7d4348a247d1a8ce101f26748e45228365634..d553c51ab480599ae556446b91d8cdd72369a2d7 100644 (file)
 [296] = { 4,   TD|TF,          SEN(utimensat),                 "utimensat"             },
 [297] = { 5,   TD|TF,          SEN(fchownat),                  "fchownat"              },
 [298] = { 3,   TD|TF,          SEN(futimesat),                 "futimesat"             },
-[299] = { 4,   TD|TF,          SEN(newfstatat),                "fstatat64"             },
+[299] = { 4,   TD|TF,          SEN(fstatat64),                 "fstatat64"             },
 [300] = { 3,   TD|TF,          SEN(fchmodat),                  "fchmodat"              },
 [301] = { 3,   TD|TF,          SEN(faccessat),                 "faccessat"             },
 [302 ... 303] = { },
index 74dc3a089803b22cccffe0e8759169dec57c9f76..398fb287adf6afbfae7984c3996456e5adb52c86 100644 (file)
@@ -174,6 +174,7 @@ pathtrace_match(struct tcb *tcp)
        case SEN_faccessat:
        case SEN_fchmodat:
        case SEN_fchownat:
+       case SEN_fstatat64:
        case SEN_futimesat:
        case SEN_inotify_add_watch:
        case SEN_mkdirat: