1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00
This commit is contained in:
Annika Wierichs 2018-01-02 17:10:59 +01:00
parent 36e69bdc12
commit ea4a2f6de1
5 changed files with 458 additions and 453 deletions

View file

@ -21,7 +21,7 @@
typedef uint16_t in_port_t;
int inet_pton(int af, const char *src, void *dst);
// int inet_pton(int af, const char *src, void *dst);
/** 255.255.255.255 */
#define IPADDR_NONE ((uint32_t)0xffffffffUL)

View file

@ -11,6 +11,7 @@ add_executable(hg hg.c hist.c rdtsc.c run.c init.c opt.c report.c setup.c)
# add_executable(ib-pingpong-ud ib/pingpong.c ib/pingpong-ud.c)
add_executable(ib_write_bw ib/write_bw.c ib/get_clock.c ib/perftest_parameters.c
ib/perftest_resources.c ib/perftest_communication.c)
target_link_libraries(ib_write_bw pthread)
add_executable(netio netio.c)

File diff suppressed because it is too large Load diff

View file

@ -58,7 +58,7 @@
#include <unistd.h>
// #include <byteswap.h>
#include <math.h>
// #include <netinet/in.h>
#include <netinet/in.h>
#include <sys/time.h>
#include <sys/types.h>
// #include <sys/socket.h>
@ -469,7 +469,7 @@ int run_iter_bw(struct pingpong_context *ctx,struct perftest_parameters *user_pa
* user_param - user_parameters struct for this test.
*
*/
int run_iter_bw_infinitely(struct pingpong_context *ctx,struct perftest_parameters *user_param);
// int run_iter_bw_infinitely(struct pingpong_context *ctx,struct perftest_parameters *user_param);
/* run_iter_bw_infinitely_server
*

View file

@ -37,6 +37,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "perftest_parameters.h"
#include "perftest_resources.h"
@ -318,14 +319,14 @@ int main(int argc, char *argv[])
printf((user_param.cpu_util_data.enable ? RESULT_EXT_CPU_UTIL : RESULT_EXT));
print_full_bw_report(&user_param, &rem_bw_rep, NULL);
}
} else if (user_param.test_method == RUN_INFINITELY) {
/* } else if (user_param.test_method == RUN_INFINITELY) { */
ctx_set_send_wqes(&ctx,&user_param,rem_dest);
/* ctx_set_send_wqes(&ctx,&user_param,rem_dest); */
if(run_iter_bw_infinitely(&ctx,&user_param)) {
fprintf(stderr," Error occurred while running infinitely! aborting ...\n");
return FAILURE;
}
/* if(run_iter_bw_infinitely(&ctx,&user_param)) { */
/* fprintf(stderr," Error occurred while running infinitely! aborting ...\n"); */
/* return FAILURE; */
/* } */
}
if (user_param.output == FULL_VERBOSITY) {