Dmitry V. Levin | 6d20a0b | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 1 | #include "defs.h" |
| 2 | |
| 3 | static void |
| 4 | decode_renameat(struct tcb *tcp) |
| 5 | { |
| 6 | print_dirfd(tcp, tcp->u_arg[0]); |
| 7 | printpath(tcp, tcp->u_arg[1]); |
| 8 | tprints(", "); |
| 9 | print_dirfd(tcp, tcp->u_arg[2]); |
| 10 | printpath(tcp, tcp->u_arg[3]); |
| 11 | } |
| 12 | |
Dmitry V. Levin | a0bd374 | 2015-04-07 01:36:50 +0000 | [diff] [blame] | 13 | SYS_FUNC(renameat) |
Dmitry V. Levin | 6d20a0b | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 14 | { |
Dmitry V. Levin | fe62e33 | 2015-07-17 17:22:24 +0000 | [diff] [blame] | 15 | decode_renameat(tcp); |
| 16 | |
| 17 | return RVAL_DECODED; |
Dmitry V. Levin | 6d20a0b | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 18 | } |
| 19 | |
Dmitry V. Levin | 19b50da | 2014-12-11 18:55:43 +0000 | [diff] [blame] | 20 | #include <linux/fs.h> |
Dmitry V. Levin | 6d20a0b | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 21 | #include "xlat/rename_flags.h" |
| 22 | |
Dmitry V. Levin | a0bd374 | 2015-04-07 01:36:50 +0000 | [diff] [blame] | 23 | SYS_FUNC(renameat2) |
Dmitry V. Levin | 6d20a0b | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 24 | { |
Dmitry V. Levin | fe62e33 | 2015-07-17 17:22:24 +0000 | [diff] [blame] | 25 | decode_renameat(tcp); |
| 26 | tprints(", "); |
| 27 | printflags(rename_flags, tcp->u_arg[4], "RENAME_??"); |
| 28 | |
| 29 | return RVAL_DECODED; |
Dmitry V. Levin | 6d20a0b | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 30 | } |