/* * rozofsmount profiling */ static void connect_to_rozofsmount_profil() { strcpy(profiler_client.mp.host, profiled_host); profiler_client.mp.port = profiling_port; if (mp_client_initialize(&profiler_client.mp) != 0) { fprintf(stderr, "failed to connect to %s: %s\n", profiled_host, strerror(errno)); exit(EXIT_FAILURE); } }
/* * rozofsmount profiling */ static void connect_to_rozofsmount_profil() { strncpy(profiler_client.mp.host, profiled_host, ROZOFS_HOSTNAME_MAX); profiler_client.mp.port = profiling_port; profiler_client.mp.timeout = RPROF_TIMEOUT_REQUESTS; if (mp_client_initialize(&profiler_client.mp) != 0) { fprintf(stderr, "failed to connect to %s: %s\n", profiled_host, strerror(errno)); exit(EXIT_FAILURE); } }