*/
#include "dapl.h"
+#include "dapl_adapter_util.h"
#if !defined(__KDAPL__)
#include <stdarg.h>
#include <stdlib.h>
total_t = current_t - start_t;
last_t = current_t;
va_start(args, fmt);
- fprintf(stdout, "%s:%x:%x: %d us(%d us%s): ",
- _ptr_host_, dapl_os_getpid(), dapl_os_gettid(),
+ fprintf(stdout, "%s:%s:%x:%x: %d us(%d us%s): ",
+ _ptr_host_, PROVIDER_NAME,
+ dapl_os_getpid(), dapl_os_gettid(),
total_t, delta_t, delta_t > 500000 ? "!!!":"");
dapl_os_vprintf(fmt, args);
va_end(args);
int i, max;
DAT_UINT64 *p_cntrs;
DAT_HANDLE_TYPE type = 0;
- DAPL_IA *ia = NULL;
dat_get_handle_type(dh, &type);
switch (type) {
case DAT_HANDLE_TYPE_IA:
max = DCNT_IA_ALL_COUNTERS;
- ia = (DAPL_IA *)dh;
p_cntrs = ((DAPL_IA *) dh)->cntrs;
break;
case DAT_HANDLE_TYPE_EP: