]> git.openfabrics.org - ~shefty/ibacm.git/commitdiff
refresh
authorSean Hefty <sean.hefty@intel.com>
Wed, 29 Jun 2011 07:07:54 +0000 (00:07 -0700)
committerSean Hefty <sean.hefty@intel.com>
Wed, 29 Jun 2011 07:07:54 +0000 (00:07 -0700)
meta
patches/counters
patches/refresh-temp [deleted file]

diff --git a/meta b/meta
index d2aa833c366015668150db76573b0f6eb3a90e43..b944500678f10859d9ba93acfc679b6d9a4a5668 100644 (file)
--- a/meta
+++ b/meta
@@ -1,11 +1,10 @@
 Version: 1
-Previous: 1a794f4fe34d1ba6670e417a2fed361b971d61e4
-Head: 6311cd29949aa7a9752d60543e046d8ecad54261
+Previous: 8ac7f19bff59d165b9ae910d91e0f23de63edaf7
+Head: be2a2124ef6f726cff01ff7733ded8280b24ab06
 Applied:
   deam: 15fcbd5198ba0c15ab4e8fddcdba32c8ef45faf8
   braces: 5fb48c1b8d722b60332f83ca4c8b92b2a7e456a6
-  counters: 77429e641ec865f9123f762fe4a2b38f958b7757
-  refresh-temp: 6311cd29949aa7a9752d60543e046d8ecad54261
+  counters: be2a2124ef6f726cff01ff7733ded8280b24ab06
 Unapplied:
   acm1.0.5: 1b225173756cfcec4d81d26b1160ebae7644261b
   name2ip: 8e00708e882239292492e13aa51c82042255933c
index 812684254d9725434d0c25fc1b286051daa9f879..c14a0f1d0f040763818281edd95dc31427694353 100644 (file)
@@ -1,5 +1,5 @@
 Bottom: fad6610d1d2786b12bafb5cd923f53cfb674ebdb
-Top:    4e880c751ba52d99f201637395b7a42c35db7d72
+Top:    0bfe95529a1fbb432153c9e1d04862c47b412f39
 Author: Sean Hefty <sean.hefty@intel.com>
 Date:   2011-06-27 10:29:36 -0700
 
@@ -427,7 +427,7 @@ index d42ba81..cf296c6 100644
        if (verbose || !(make_addr || make_opts) || ret)
                printf("return status 0x%x\n", ret);
 diff --git a/src/libacm.c b/src/libacm.c
-index 31014d1..5a0332f 100644
+index 31014d1..a4a7743 100644
 --- a/src/libacm.c
 +++ b/src/libacm.c
 @@ -36,6 +36,8 @@
@@ -498,17 +498,15 @@ index 31014d1..5a0332f 100644
        }
  }
  
-@@ -310,3 +313,44 @@ out:
+@@ -310,3 +313,42 @@ out:
        lock_release(&lock);
        return ret;
  }
 +
 +int ib_acm_query_perf(uint64_t **counters, int *count)
 +{
-+      union {
-+              struct acm_msg msg;
-+              struct acm_perf_msg perf_msg;
-+      };
++      struct acm_msg msg;
++      struct acm_perf_msg *perf_msg = (struct acm_perf_msg *) msg;
 +      int ret;
 +
 +      lock_acquire(&lock);
@@ -536,7 +534,7 @@ index 31014d1..5a0332f 100644
 +              goto out;
 +      }
 +
-+      memcpy(*counters, perf_msg.data, msg.hdr.data[0]);
++      memcpy(*counters, perf_msg->data, msg.hdr.data[0]);
 +      *count = msg.hdr.data[0];
 +      ret = 0;
 +out:
diff --git a/patches/refresh-temp b/patches/refresh-temp
deleted file mode 100644 (file)
index e5eb8ea..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-Bottom: 4e880c751ba52d99f201637395b7a42c35db7d72
-Top:    0bfe95529a1fbb432153c9e1d04862c47b412f39
-Author: Sean Hefty <sean.hefty@intel.com>
-Date:   2011-06-29 00:07:54 -0700
-
-Refresh of counters
-
----
-
-diff --git a/src/libacm.c b/src/libacm.c
-index 5a0332f..a4a7743 100644
---- a/src/libacm.c
-+++ b/src/libacm.c
-@@ -316,10 +316,8 @@ out:
- int ib_acm_query_perf(uint64_t **counters, int *count)
- {
--      union {
--              struct acm_msg msg;
--              struct acm_perf_msg perf_msg;
--      };
-+      struct acm_msg msg;
-+      struct acm_perf_msg *perf_msg = (struct acm_perf_msg *) msg;
-       int ret;
-       lock_acquire(&lock);
-@@ -347,7 +345,7 @@ int ib_acm_query_perf(uint64_t **counters, int *count)
-               goto out;
-       }
--      memcpy(*counters, perf_msg.data, msg.hdr.data[0]);
-+      memcpy(*counters, perf_msg->data, msg.hdr.data[0]);
-       *count = msg.hdr.data[0];
-       ret = 0;
- out: