]> granicus.if.org Git - strace/blobdiff - kcmp.c
Remove linux/ptp_clock.h
[strace] / kcmp.c
diff --git a/kcmp.c b/kcmp.c
index e1c6e9ed0532bd299c201f0a3b2ff99011a46d96..ec537a67952bee00e138e39972e469b37b83f7b5 100644 (file)
--- a/kcmp.c
+++ b/kcmp.c
 #include "print_fields.h"
 #include "xlat/kcmp_types.h"
 
+struct strace_kcmp_epoll_slot {
+       uint32_t efd;
+       uint32_t tfd;
+       uint32_t toff;
+};
+
 static void
 printpidfd(struct tcb *tcp, pid_t pid, int fd)
 {
@@ -65,6 +71,25 @@ SYS_FUNC(kcmp)
                        printpidfd(tcp, pid1, idx2);
 
                        break;
+
+               case KCMP_EPOLL_TFD: {
+                       struct strace_kcmp_epoll_slot slot;
+
+                       tprints(", ");
+                       printpidfd(tcp, pid1, idx1);
+                       tprints(", ");
+
+                       if (umove_or_printaddr(tcp, idx2, &slot))
+                               break;
+
+                       PRINT_FIELD_PIDFD("{",  slot, efd, tcp, pid2);
+                       PRINT_FIELD_PIDFD(", ", slot, tfd, tcp, pid2);
+                       PRINT_FIELD_U(", ", slot, toff);
+                       tprints("}");
+
+                       break;
+               }
+
                case KCMP_FILES:
                case KCMP_FS:
                case KCMP_IO: