]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
refresh
authorSean Hefty <sean.hefty@intel.com>
Wed, 8 Aug 2012 04:28:32 +0000 (21:28 -0700)
committerSean Hefty <sean.hefty@intel.com>
Wed, 8 Aug 2012 04:28:32 +0000 (21:28 -0700)
meta
patches/oobinline
patches/refresh-temp [deleted file]

diff --git a/meta b/meta
index 411d9d106b6324376d03ff1d122e785b2c349220..2c6fd3b2907a4794ec9f709c5fcfdc163e43a139 100644 (file)
--- a/meta
+++ b/meta
@@ -1,11 +1,10 @@
 Version: 1
-Previous: 9864aca97a6d4b5389053b7cacd4406a0c35329d
-Head: 1dc14a3d584db0ea1840c4a08ed9b7b346fdbece
+Previous: fd32144ef25ea30b08ded5ca14dcb08c32d77056
+Head: e681c16ca6b394374d1b63bd1a81541047627432
 Applied:
   real-close: 3409f8d6af187d25c63a5d1f8ee8bff5f14555e2
   dup2: ca5813e7cf95dee5933fc417e4a34d26f2b01824
-  oobinline: 60e807a3fe28019f62f6b5fc6ae547c08767fe01
-  refresh-temp: 1dc14a3d584db0ea1840c4a08ed9b7b346fdbece
+  oobinline: e681c16ca6b394374d1b63bd1a81541047627432
 Unapplied:
   fstat: 07e07a6ee41d57eb20b3b71b1d8098408fc1de03
   dbg-out: ffeea178a7bed542f8f035ac0d4884dfdea63026
index b60bd73b3aa1f6d9780e5aeb12504beaf030e099..46ec3ef60f06dbc5167a164b23bfdb1bd7549a97 100644 (file)
@@ -1,5 +1,5 @@
 Bottom: 7cfa8b8bbb7449eac973ab817f043b3f1a3850b7
-Top:    7cfa8b8bbb7449eac973ab817f043b3f1a3850b7
+Top:    dab6accbfecd057dc03864b5bc34a2470658f9c7
 Author: Sean Hefty <sean.hefty@intel.com>
 Date:   2012-08-07 21:25:00 -0700
 
@@ -12,4 +12,112 @@ Signed-off-by: Sean Hefty <sean.hefty@intel.com>
 
 ---
 
-
+diff --git a/src/preload.c b/src/preload.c
+index b18d310..b13ad2d 100644
+--- a/src/preload.c
++++ b/src/preload.c
+@@ -48,6 +48,8 @@
+ #include <netinet/tcp.h>
+ #include <unistd.h>
+ #include <semaphore.h>
++#include <stdio.h>
++#include <sys/syscall.h>
+ #include <rdma/rdma_cma.h>
+ #include <rdma/rdma_verbs.h>
+@@ -389,6 +391,8 @@ int socket(int domain, int type, int protocol)
+       if (index < 0)
+               return index;
++      fprintf(fout, "%d socket - %d\n", syscall(SYS_gettid), index);
++      fflush(fout);
+       recursive = 1;
+       ret = rsocket(domain, type, protocol);
+       recursive = 0;
+@@ -403,6 +407,9 @@ int socket(int domain, int type, int protocol)
+                       fd_store(index, ret, fd_rsocket);
+                       set_rsocket_options(ret);
+               }
++              fprintf(fout, "%d socket - %d fd %d type %d\n",
++                              syscall(SYS_gettid), index, ret, fd_gett(index));
++              fflush(fout);
+               return index;
+       }
+       fd_close(index, &ret);
+@@ -463,6 +470,8 @@ static int fork_active(int socket, const struct sockaddr *addr, socklen_t addrle
+       long flags;
+       fd = fd_getd(socket);
++      fprintf(fout, "%d fork_active - %d fd %d\n", syscall(SYS_gettid), socket, fd);
++      fflush(fout);
+       flags = real.fcntl(fd, F_GETFL);
+       real.fcntl(fd, F_SETFL, 0);
+       ret = real.connect(fd, addr, addrlen);
+@@ -493,6 +502,8 @@ static void fork_passive(int socket)
+       uint32_t msg;
+       fd_get(socket, &sfd);
++      fprintf(fout, "%d fork_passive - %d fd %d\n", syscall(SYS_gettid), socket, sfd);
++      fflush(fout);
+       len = sizeof sin6;
+       ret = real.getsockname(sfd, (struct sockaddr *) &sin6, &len);
+@@ -525,11 +536,17 @@ static void fork_passive(int socket)
+       ret = rlisten(lfd, 1);
+       if (ret)
+               goto lclose;
++      fprintf(fout, "%d fork_passive - %d listening for fork\n", syscall(SYS_gettid), socket);
++      fflush(fout);
+       msg = 0;
+       len = real.write(sfd, &msg, sizeof msg);
+       if (len != sizeof msg)
++      {
++              fprintf(fout, "%d fork_passive - %d write failed\n", syscall(SYS_gettid), socket);
++              fflush(fout);
+               goto lclose;
++      }
+       dfd = raccept(lfd, NULL, NULL);
+       if (dfd < 0) {
+@@ -545,6 +562,8 @@ static void fork_passive(int socket)
+       real.shutdown(sfd, SHUT_RDWR);
+       real.close(sfd);
+       fd_store(socket, dfd, fd_rsocket);
++      fprintf(fout, "%d fork_passive success - %d new fd %d\n", syscall(SYS_gettid), socket, dfd);
++      fflush(fout);
+ lclose:
+       rclose(lfd);
+@@ -922,6 +941,7 @@ int dup2(int oldfd, int newfd)
+       int ret;
+       init_preload();
++      fprintf(fout, "%d dup2 %d -> %d\n", syscall(SYS_gettid), oldfd, newfd);
+       oldfdi = idm_lookup(&idm, oldfd);
+       if (oldfdi && oldfdi->type == fd_fork)
+               fork_passive(oldfd);
+@@ -961,3 +981,23 @@ int dup2(int oldfd, int newfd)
+       atomic_inc(&oldfdi->refcnt);
+       return newfd;
+ }
++
++int __fxstat64(int ver, int socket, struct stat64 *buf)
++{
++      int fd, ret;
++
++      init_preload();
++      fprintf(fout, "%d fxstat64 socket %d - fd %d type %d\n",
++                      syscall(SYS_gettid), socket, fd_getd(socket), fd_gett(socket));
++      if (fd_get(socket, &fd) == fd_rsocket) {
++              ret = real.fxstat64(ver, socket, buf);
++              fprintf(fout, "%d fxstat64 - rsocket %d\n", syscall(SYS_gettid), ret);
++              if (!ret)
++                      buf->st_mode = (buf->st_mode & ~S_IFMT) | __S_IFSOCK;
++      } else {
++              ret = real.fxstat64(ver, fd, buf);
++              fprintf(fout, "%d fxstat64 - normal %d\n", syscall(SYS_gettid), ret);
++      }
++      fflush(fout);
++      return ret;
++}
diff --git a/patches/refresh-temp b/patches/refresh-temp
deleted file mode 100644 (file)
index 5e3ad8f..0000000
+++ /dev/null
@@ -1,118 +0,0 @@
-Bottom: 7cfa8b8bbb7449eac973ab817f043b3f1a3850b7
-Top:    dab6accbfecd057dc03864b5bc34a2470658f9c7
-Author: Sean Hefty <sean.hefty@intel.com>
-Date:   2012-08-07 21:28:32 -0700
-
-Refresh of oobinline
-
----
-
-diff --git a/src/preload.c b/src/preload.c
-index b18d310..b13ad2d 100644
---- a/src/preload.c
-+++ b/src/preload.c
-@@ -48,6 +48,8 @@
- #include <netinet/tcp.h>
- #include <unistd.h>
- #include <semaphore.h>
-+#include <stdio.h>
-+#include <sys/syscall.h>
- #include <rdma/rdma_cma.h>
- #include <rdma/rdma_verbs.h>
-@@ -389,6 +391,8 @@ int socket(int domain, int type, int protocol)
-       if (index < 0)
-               return index;
-+      fprintf(fout, "%d socket - %d\n", syscall(SYS_gettid), index);
-+      fflush(fout);
-       recursive = 1;
-       ret = rsocket(domain, type, protocol);
-       recursive = 0;
-@@ -403,6 +407,9 @@ int socket(int domain, int type, int protocol)
-                       fd_store(index, ret, fd_rsocket);
-                       set_rsocket_options(ret);
-               }
-+              fprintf(fout, "%d socket - %d fd %d type %d\n",
-+                              syscall(SYS_gettid), index, ret, fd_gett(index));
-+              fflush(fout);
-               return index;
-       }
-       fd_close(index, &ret);
-@@ -463,6 +470,8 @@ static int fork_active(int socket, const struct sockaddr *addr, socklen_t addrle
-       long flags;
-       fd = fd_getd(socket);
-+      fprintf(fout, "%d fork_active - %d fd %d\n", syscall(SYS_gettid), socket, fd);
-+      fflush(fout);
-       flags = real.fcntl(fd, F_GETFL);
-       real.fcntl(fd, F_SETFL, 0);
-       ret = real.connect(fd, addr, addrlen);
-@@ -493,6 +502,8 @@ static void fork_passive(int socket)
-       uint32_t msg;
-       fd_get(socket, &sfd);
-+      fprintf(fout, "%d fork_passive - %d fd %d\n", syscall(SYS_gettid), socket, sfd);
-+      fflush(fout);
-       len = sizeof sin6;
-       ret = real.getsockname(sfd, (struct sockaddr *) &sin6, &len);
-@@ -525,11 +536,17 @@ static void fork_passive(int socket)
-       ret = rlisten(lfd, 1);
-       if (ret)
-               goto lclose;
-+      fprintf(fout, "%d fork_passive - %d listening for fork\n", syscall(SYS_gettid), socket);
-+      fflush(fout);
-       msg = 0;
-       len = real.write(sfd, &msg, sizeof msg);
-       if (len != sizeof msg)
-+      {
-+              fprintf(fout, "%d fork_passive - %d write failed\n", syscall(SYS_gettid), socket);
-+              fflush(fout);
-               goto lclose;
-+      }
-       dfd = raccept(lfd, NULL, NULL);
-       if (dfd < 0) {
-@@ -545,6 +562,8 @@ static void fork_passive(int socket)
-       real.shutdown(sfd, SHUT_RDWR);
-       real.close(sfd);
-       fd_store(socket, dfd, fd_rsocket);
-+      fprintf(fout, "%d fork_passive success - %d new fd %d\n", syscall(SYS_gettid), socket, dfd);
-+      fflush(fout);
- lclose:
-       rclose(lfd);
-@@ -922,6 +941,7 @@ int dup2(int oldfd, int newfd)
-       int ret;
-       init_preload();
-+      fprintf(fout, "%d dup2 %d -> %d\n", syscall(SYS_gettid), oldfd, newfd);
-       oldfdi = idm_lookup(&idm, oldfd);
-       if (oldfdi && oldfdi->type == fd_fork)
-               fork_passive(oldfd);
-@@ -961,3 +981,23 @@ int dup2(int oldfd, int newfd)
-       atomic_inc(&oldfdi->refcnt);
-       return newfd;
- }
-+
-+int __fxstat64(int ver, int socket, struct stat64 *buf)
-+{
-+      int fd, ret;
-+
-+      init_preload();
-+      fprintf(fout, "%d fxstat64 socket %d - fd %d type %d\n",
-+                      syscall(SYS_gettid), socket, fd_getd(socket), fd_gett(socket));
-+      if (fd_get(socket, &fd) == fd_rsocket) {
-+              ret = real.fxstat64(ver, socket, buf);
-+              fprintf(fout, "%d fxstat64 - rsocket %d\n", syscall(SYS_gettid), ret);
-+              if (!ret)
-+                      buf->st_mode = (buf->st_mode & ~S_IFMT) | __S_IFSOCK;
-+      } else {
-+              ret = real.fxstat64(ver, fd, buf);
-+              fprintf(fout, "%d fxstat64 - normal %d\n", syscall(SYS_gettid), ret);
-+      }
-+      fflush(fout);
-+      return ret;
-+}