[hipl-commit] [trunk] Rev 4225: Move performance measurement code into the core.

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Fri, 9 Apr 2010 20:56:52 +0300

Committer: Diego Biurrun <diego@xxxxxxxxxx>
Date: 09/04/2010 at 20:56:52
Revision: 4225
Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  Move performance measurement code into the core.

Modified:
  D  lib/performance/
  R  lib/performance/performance.c => lib/core/performance.c
  R  lib/performance/performance.h => lib/core/performance.h
  M  Makefile.am
  M  firewall/conntrack.c
  M  firewall/firewall.c
  M  firewall/pisa.c
  M  hipd/close.c
  M  hipd/hipd.c
  M  hipd/init.c
  M  hipd/input.c
  M  hipd/output.c
  M  lib/core/crypto.c
  M  lib/tool/pk.c
  M  test/dh_performance.c

=== modified file 'Makefile.am'
--- Makefile.am 2010-04-09 16:37:19 +0000
+++ Makefile.am 2010-04-09 17:56:34 +0000
@@ -256,7 +256,7 @@
 endif
 
 if HIP_PERFORMANCE
-lib_core_libhipcore_la_SOURCES += lib/performance/performance.c
+lib_core_libhipcore_la_SOURCES += lib/core/performance.c
 endif
 
 if HIP_PRIVSEP

=== modified file 'firewall/conntrack.c'
--- firewall/conntrack.c        2010-04-09 15:20:38 +0000
+++ firewall/conntrack.c        2010-04-09 17:56:34 +0000
@@ -33,7 +33,7 @@
 #include "firewalldb.h"
 #include "firewall.h"
 #include "lib/core/debug.h"
-#include "lib/performance/performance.h"
+#include "lib/core/performance.h"
 #include "helpers.h"
 
 #ifdef CONFIG_HIP_MIDAUTH

=== modified file 'firewall/firewall.c'
--- firewall/firewall.c 2010-04-09 15:20:38 +0000
+++ firewall/firewall.c 2010-04-09 17:56:34 +0000
@@ -49,9 +49,9 @@
 #ifdef CONFIG_HIP_MIDAUTH
 #include "pisa.h" /* PISA */
 #endif
-#include "lib/performance/performance.h" /* Performance Analysis */
 #include "helpers.h"
 #include "lib/core/filemanip.h"
+#include "lib/core/performance.h"
 
 /* packet types handled by the firewall */
 #define OTHER_PACKET          0

=== modified file 'firewall/pisa.c'
--- firewall/pisa.c     2010-04-09 16:24:44 +0000
+++ firewall/pisa.c     2010-04-09 17:56:34 +0000
@@ -22,7 +22,7 @@
 #include "config.h"
 #include "lib/core/ife.h"
 #include "lib/core/crypto.h"
-#include "lib/performance/performance.h"
+#include "lib/core/performance.h"
 #include "midauth.h"
 
 #include "pisa.h"

=== modified file 'hipd/close.c'
--- hipd/close.c        2010-04-09 15:20:38 +0000
+++ hipd/close.c        2010-04-09 17:56:34 +0000
@@ -12,8 +12,8 @@
 
 #include "config.h"
 #include "close.h"
-#include "lib/performance/performance.h"
 #include "lib/core/hip_udp.h"
+#include "lib/core/performance.h"
 
 /**
  * send a HIP close packet to a peer

=== modified file 'hipd/hipd.c'
--- hipd/hipd.c 2010-04-09 17:36:17 +0000
+++ hipd/hipd.c 2010-04-09 17:56:34 +0000
@@ -13,9 +13,9 @@
 #include "hipd.h"
 #include "lib/dht/libhipdht.h"
 #include "lib/core/filemanip.h"
+#include "lib/core/performance.h"
 #include "lib/core/straddr.h"
 #include "heartbeat.h"
-#include "lib/performance/performance.h"
 
 
 /* Defined as a global just to allow freeing in exit(). Do not use outside

=== modified file 'hipd/init.c'
--- hipd/init.c 2010-04-09 17:09:52 +0000
+++ hipd/init.c 2010-04-09 17:56:34 +0000
@@ -19,10 +19,10 @@
 #include "oppdb.h"
 #include "lib/core/common_defines.h"
 #include "lib/core/debug.h"
-#include "lib/performance/performance.h"
 #include "lib/core/hip_capability.h"
 #include "lib/core/filemanip.h"
 #include "lib/core/hostid.h"
+#include "lib/core/performance.h"
 #include "lib/tool/nlink.h"
 #include "lib/dht/libhipdht.h"
 #include "lib/core/hip_udp.h"

=== modified file 'hipd/input.c'
--- hipd/input.c        2010-04-09 15:20:38 +0000
+++ hipd/input.c        2010-04-09 17:56:34 +0000
@@ -28,7 +28,7 @@
 #include "lib/core/solve.h"
 #include "lib/core/transform.h"
 #include "lib/core/keylen.h"
-#include "lib/performance/performance.h"
+#include "lib/core/performance.h"
 #include "dh.h"
 
 #include "hidb.h"

=== modified file 'hipd/output.c'
--- hipd/output.c       2010-04-09 15:20:38 +0000
+++ hipd/output.c       2010-04-09 17:56:34 +0000
@@ -19,7 +19,7 @@
 
 #include "config.h"
 #include "output.h"
-#include "lib/performance/performance.h"
+#include "lib/core/performance.h"
 
 #ifdef CONFIG_HIP_I3
 #include "i3/i3_client/i3_client_id.h"

=== modified file 'lib/core/crypto.c'
--- lib/core/crypto.c   2010-04-09 16:24:44 +0000
+++ lib/core/crypto.c   2010-04-09 17:56:34 +0000
@@ -31,7 +31,7 @@
 #include "config.h"
 #include "crypto.h"
 #include "keylen.h"
-#include "lib/performance/performance.h"
+#include "performance.h"
 
 
 /*

=== removed directory 'lib/performance'
=== modified file 'lib/tool/pk.c'
--- lib/tool/pk.c       2010-04-09 16:24:44 +0000
+++ lib/tool/pk.c       2010-04-09 17:56:34 +0000
@@ -12,7 +12,7 @@
 
 #include "config.h"
 #include "pk.h"
-#include "lib/performance/performance.h"
+#include "lib/core/performance.h"
 
 /**
  * sign a HIP control message with a private RSA key

=== modified file 'test/dh_performance.c'
--- test/dh_performance.c       2010-04-08 11:17:55 +0000
+++ test/dh_performance.c       2010-04-09 17:56:34 +0000
@@ -18,14 +18,13 @@
 #include <openssl/dh.h>         /* open ssl library for DH operations */
 #include <openssl/sha.h>        /* open ssl library for SHA operations */
 #include <openssl/dsa.h>        /* open ssl library for DSA operations */
+#include <openssl/sha.h>
 
 #include "config.h"
 #include "lib/core/crypto.h"
 #include "lib/core/filemanip.h"
 #include "lib/core/hashchain.h"
-
-#include "lib/performance/performance.h"
-#include <openssl/sha.h>
+#include "lib/core/performance.h"
 
 //int DH_compute_key(unsigned char *key, BIGNUM *pub_key, DH *dh);

Other related posts:

  • » [hipl-commit] [trunk] Rev 4225: Move performance measurement code into the core. - Diego Biurrun