diff options
Diffstat (limited to 'liboffloadmic/runtime/offload_timer.h')
-rw-r--r-- | liboffloadmic/runtime/offload_timer.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/liboffloadmic/runtime/offload_timer.h b/liboffloadmic/runtime/offload_timer.h index 847f9d15eda..8da1391c24c 100644 --- a/liboffloadmic/runtime/offload_timer.h +++ b/liboffloadmic/runtime/offload_timer.h @@ -1,5 +1,5 @@ /* - Copyright (c) 2014 Intel Corporation. All Rights Reserved. + Copyright (c) 2014-2015 Intel Corporation. All Rights Reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions @@ -36,7 +36,7 @@ #include <stdint.h> #include "liboffload_error_codes.h" -extern int timer_enabled; +DLL_LOCAL extern int timer_enabled; #ifdef TIMING_SUPPORT @@ -73,8 +73,8 @@ struct OffloadHostTimerData { #if HOST_LIBRARY -extern int offload_report_level; -extern int offload_report_enabled; +DLL_LOCAL extern int offload_report_level; +DLL_LOCAL extern int offload_report_enabled; #define OFFLOAD_REPORT_1 1 #define OFFLOAD_REPORT_2 2 #define OFFLOAD_REPORT_3 3 @@ -121,18 +121,18 @@ extern int offload_report_enabled; offload_timer_fill_host_mic_num(timer_data, data); \ } -extern void offload_timer_start(OffloadHostTimerData *, +extern DLL_LOCAL void offload_timer_start(OffloadHostTimerData *, OffloadHostPhase t_node); -extern void offload_timer_stop(OffloadHostTimerData *, +extern DLL_LOCAL void offload_timer_stop(OffloadHostTimerData *, OffloadHostPhase t_node); -extern OffloadHostTimerData * offload_timer_init(const char *file, int line); -extern void offload_timer_fill_target_data(OffloadHostTimerData *, +extern DLL_LOCAL OffloadHostTimerData * offload_timer_init(const char *file, int line); +extern DLL_LOCAL void offload_timer_fill_target_data(OffloadHostTimerData *, void *data); -extern void offload_timer_fill_host_sdata(OffloadHostTimerData *, +extern DLL_LOCAL void offload_timer_fill_host_sdata(OffloadHostTimerData *, uint64_t sent_bytes); -extern void offload_timer_fill_host_rdata(OffloadHostTimerData *, +extern DLL_LOCAL void offload_timer_fill_host_rdata(OffloadHostTimerData *, uint64_t sent_bytes); -extern void offload_timer_fill_host_mic_num(OffloadHostTimerData *, +extern DLL_LOCAL void offload_timer_fill_host_mic_num(OffloadHostTimerData *, int card_number); // Utility structure for starting/stopping timer @@ -172,10 +172,10 @@ private: #define OFFLOAD_TIMER_TARGET_DATA(data) \ if (timer_enabled) offload_timer_fill_target_data(data); -extern void offload_timer_start(OffloadTargetPhase t_node); -extern void offload_timer_stop(OffloadTargetPhase t_node); -extern void offload_timer_init(void); -extern void offload_timer_fill_target_data(void *data); +extern DLL_LOCAL void offload_timer_start(OffloadTargetPhase t_node); +extern DLL_LOCAL void offload_timer_stop(OffloadTargetPhase t_node); +extern DLL_LOCAL void offload_timer_init(void); +extern DLL_LOCAL void offload_timer_fill_target_data(void *data); #endif // HOST_LIBRARY |