32 #define LOUT printf("%s\n",c_line);
35 #define LOUT printf("%s\n",c_line);
38 #define LOUT printf("%s\n",c_line);
42 #define LOUT printf("%s\n",c_line);
45 #include "f_ut_error.h"
46 #define LOUT f_ut_error("",ERR__MSG_INFO,0,c_line,MASK__PRTTERM);
56 CHARX *ps_master[16] = {
"CVC",
"E6",
"E7",
"AEB",
"CBV",
"CVI",
"CAV",
"RIO2",
"PC",
"RIO3",
"V32C32",
"RIO4",
"PCx86",
59 sprintf (c_line,
"%s",
f_ut_time (c_time));
62 if (ps_daqst != NULL )
64 sprintf (c_line,
"S_daqst *********************************************************************");
67 sprintf (c_line,
" l_version __________%5d l_endian ___________%5d", ps_daqst->
l_version, ps_daqst->
l_endian);
70 sprintf (c_line,
" l_daqst_lw _________%5d l_fix_lw ___________%5d", ps_daqst->
l_daqst_lw, ps_daqst->
l_fix_lw);
73 sprintf (c_line,
" l_sys__n_max_procs _%5d l_sbs__str_len_64 __%5d", ps_daqst->
l_sys__n_max_procs,
77 sprintf (c_line,
" l_sbs__n_trg_typ ___%5d bh_verbose_flg _____%5d", ps_daqst->
l_sbs__n_trg_typ,
81 sprintf (c_line,
" bl_n_events ___%10d bl_r_events ________%5d", ps_daqst->
bl_n_events, ps_daqst->
bl_r_events);
84 sprintf (c_line,
" bl_n_buffers ___%9d bl_r_buffers _______%5d", ps_daqst->
bl_n_buffers,
88 sprintf (c_line,
" bl_n_bufstream _%9d bl_r_bufstream _____%5d", ps_daqst->
bl_n_bufstream,
92 sprintf (c_line,
" bl_n_kbyte ____%10d bl_r_kbyte _________%5d", ps_daqst->
bl_n_kbyte, ps_daqst->
bl_r_kbyte);
95 sprintf (c_line,
" bl_n_evserv_events %8d bl_r_evserv_events %5d", ps_daqst->
bl_n_evserv_events,
99 sprintf (c_line,
" bl_n_evserv_kbytes %8d bl_r_evserv_kbytes _%5d", ps_daqst->
bl_n_evserv_kbytes,
103 sprintf (c_line,
" bl_n_strserv_bufs %9d bl_r_strserv_bufs __%5d", ps_daqst->
bl_n_strserv_bufs,
107 sprintf (c_line,
" bl_n_strserv_kbytes %7d bl_r_strserv_kbytes %5d", ps_daqst->
bl_n_strserv_kbytes,
111 sprintf (c_line,
" bl_n_kbyte_tape %10d bl_r_kbyte_tape ____%5d", ps_daqst->
bl_n_kbyte_tape,
115 sprintf (c_line,
" bl_n_kbyte_file %9d l_free_streams________%5d", ps_daqst->
bl_n_kbyte_file,
119 sprintf (c_line,
" bl_no_streams ______%5d bl_no_stream_buf ___%5d", ps_daqst->
bl_no_streams,
123 sprintf (c_line,
" l_block_length _____%5d l_record_size ______%5d", ps_daqst->
l_block_length,
127 sprintf (c_line,
" l_block_size _______%5d bl_flush_time ______%5d", ps_daqst->
l_block_size,
131 sprintf (c_line,
" l_open_vol _________%5d l_open_file ________%5d", ps_daqst->
l_open_vol,
135 sprintf (c_line,
" l_max_tape_size __%7d l_pos_on_tape ____%7d", ps_daqst->
l_max_tape_size,
139 sprintf (c_line,
" l_file_auto ________%5d l_file_cur _________%5d", ps_daqst->
l_file_auto - 1,
143 sprintf (c_line,
" l_file_count _______%5d l_pathnum __________%5d", ps_daqst->
l_file_count,
147 sprintf (c_line,
" l_file_size ________%5d l_block_count ______%5d", ps_daqst->
l_file_size,
151 sprintf (c_line,
" l_rate_on __________%5d l_rate_sec _________%5d", ps_daqst->
l_rate_on, ps_daqst->
l_rate_sec);
154 sprintf (c_line,
" bl_histo_port _______%5d bl_run_time ________%5d", ps_daqst->
bl_histo_port,
158 sprintf (c_line,
" l_irq_driv_id ______%5d l_irq_maj_dev_id ___%5d", ps_daqst->
l_irq_driv_id,
162 for (i = 0; i < 16; i += 4)
164 sprintf (c_line,
" user [%02d] %9d [%02d] %9d [%02d] %9d [%02d] %9d", i, ps_daqst->
bl_user[i], i + 1,
172 sprintf (c_line,
" %2d bl_n_trig %9d bl_n_si _____%9d bl_n_evt _%9d", i, ps_daqst->
bl_n_trig[i],
177 sprintf (c_line,
" bl_spill_on _______%d bl_delayed_eb_ena ___%d bl_event_build_on %d", ps_daqst->
bl_spill_on,
182 sprintf (c_line,
" bl_trans_ready ___%2d bl_trans_connected _%2d bl_dabc_enabled _%3d",
187 sprintf (c_line,
" bl_strsrv_scale __%2d bl_strsrv_sync ______%d bl_strsrv_keep ___%d",
191 sprintf (c_line,
" bl_strsrv_scaled __%d bl_strsrv_nosync ____%d bl_strsrv_nokeep _%d",
195 sprintf (c_line,
" bl_evtsrv_maxcli _%2d bl_evtsrv_scale ____%2d bl_evtsrv_events %3d",
199 sprintf (c_line,
" bl_evtsrv_all _____%d bl_esosrv_maxcli ___%2d bl_rfio_connected %3d",
208 sprintf (c_line,
" c_user ______________%s", ps_daqst->
c_user);
211 sprintf (c_line,
" c_date ______________%s", ps_daqst->
c_date);
214 sprintf (c_line,
" c_exprun ____________%s", ps_daqst->
c_exprun);
217 sprintf (c_line,
" c_exper _____________%s", ps_daqst->
c_exper);
220 sprintf (c_line,
" c_host ______________%s", ps_daqst->
c_host);
223 sprintf (c_line,
" c_remote______________%s", ps_daqst->
c_remote);
226 sprintf (c_line,
" c_display_____________%s", ps_daqst->
c_display);
232 sprintf (c_line,
" c_setup_name ________%s", ps_daqst->
c_setup_name);
235 sprintf (c_line,
" c_ml/o_setup_name ___%s", ps_daqst->
c_ml_setup_name);
238 sprintf (c_line,
" c_readout_name ______%s", ps_daqst->
c_readout_name);
241 sprintf (c_line,
" c_pathstr ___________%s", ps_daqst->
c_pathstr);
244 sprintf (c_line,
" c_devname ___________%s", ps_daqst->
c_devname);
247 sprintf (c_line,
" c_tape_label ________%s", ps_daqst->
c_tape_label);
250 sprintf (c_line,
" c_file_name _________%s", ps_daqst->
c_file_name);
253 sprintf (c_line,
" c_out_chan __________%s", ps_daqst->
c_out_chan);
257 sprintf (c_line,
" bh_daqst_initalized %d bh_acqui_started __%d bh_acqui_running _%d",
261 sprintf (c_line,
" bh_setup_loaded __%d bh_set_ml/o_loaded %d %d bh_cam_tab_loaded %d",
265 sprintf (c_line,
" bh_trig_master ___%d bh_histo_enable ___%d bh_histo_ready ___%d", ps_daqst->
bh_trig_master,
269 sprintf (c_line,
" bh_event_serv_ready %d bh_ena_evt_copy ___%d l_procs_run _______%2d",
273 sprintf (c_line,
" m_dispatch _______%d m_msg_log _________%d m_util ___________%d",
277 sprintf (c_line,
" m_collector ______%d m_transport _______%d m_read_cam_slav ____%d",
282 sprintf (c_line,
" m_read_meb _______%d m_event_serv ______%d m_esone_serv _____%d",
287 sprintf (c_line,
" m_stream_serv ____%d m_histogram _______%d m_sbs_mon ________%d",
292 sprintf (c_line,
" m_prompt _________%d m_daq_rate _________%d m_smi _____________%d",
296 sprintf (c_line,
" m_ar _____________%d m_rirec ____________%d m_to ______________%d",
300 sprintf (c_line,
" m_ds ______________%d m_dr _______________%d m_vme_serv ________%d",
305 sprintf (c_line,
" Tasks ---------------------------------------------------------------------");
310 sprintf (c_line,
" %2d pid %5d pprio%3d pact %1d type %2d pname %s", i, ps_daqst->
l_pid[i], ps_daqst->
l_pprio[i],
317 if (ps_setup != NULL )
319 sprintf (c_line,
"S_setup *********************************************************************");
323 sprintf (c_line,
" l_version ___________________________________%5d l_endian ___________________________________%5d", ps_setup->
l_version,
327 sprintf (c_line,
" bl_struc_len ________________________________%5d l_fix_lw ___________________________________%5d", ps_setup->
bl_struc_len,
331 sprintf (c_line,
" bl_sbs__n_cr ________________________________%5d bl_sbs__n_trg_typ __________________________%5d", ps_setup->
bl_sbs__n_cr,
335 sprintf (c_line,
" bl_no_crates ________________________________%5d bh_crate_nr ________________________________%5d", ps_setup->
bl_no_crates,
339 sprintf (c_line,
" bl_se_meb_asy_len ___________________________%5d bh_rd_typ __________________________________%5d", ps_setup->
bl_se_meb_asy_len,
343 sprintf (c_line,
" bh_meb_asy_flg ______________________________%5d bh_col_mode ________________________________%5d", ps_setup->
bh_meb_asy_flg,
347 sprintf (c_line,
" bh_meb_trig_mode ____________________________%5d bh_special_meb_trig_type ___________________%5d", ps_setup->
bh_meb_trig_mode,
351 sprintf (c_line,
" bl_loc_esone_base _______________x%016lx bl_rem_esone_base ______________x%016lx", ps_setup->
bl_loc_esone_base,
355 sprintf (c_line,
" bl_esone_off ____________________________x%08x bl_cvc_crr_off _________________________x%08x", ps_setup->
bl_esone_off,
359 sprintf (c_line,
" bl_cvc_csr_off __________________________x%08x bl_cvc_clb_off _________________________x%08x", ps_setup->
bl_cvc_csr_off,
363 sprintf (c_line,
" bl_ml_pipe_base_addr ____________x%016lx bl_ml_pipe_seg_len _____________x%016lx", ps_setup->
bl_ml_pipe_base_addr,
367 sprintf (c_line,
" bl_special_meb_trig_base ________x%016lx bl_ml_pipe_len _________________________x%08x",
371 sprintf (c_line,
" lp_cvc_irq ______________________________x%08x bl_cvc_irq_len _________________________x%08x", ps_setup->
lp_cvc_irq,
375 sprintf (c_line,
" bl_cvc_irq_source_off ___________________x%08x bl_cvc_irq_mask_off ____________________x%08x", ps_setup->
bl_cvc_irq_source_off,
379 sprintf (c_line,
" bl_ev_buf_len ________________%5d bl_n_ev_buf _______________%5d bl_n_stream ______________%5d",
383 sprintf (c_line,
" bi_evt_typ_sy ________________%5d bi_evt_typ_asy ____________%5d bi_evt_subtyp_sy _________%5d",
387 sprintf (c_line,
" bi_evt_subtyp_asy ____________%5d h_se_control ______________%5d h_rd_tab_flg _____________%5d",
391 sprintf (c_line,
" bl_init_read_len _____________%5d bl_n_col_retry ____________%5d bi_master ___%4s_________%5d",
395 sprintf (c_line,
" Crates ---------------------------------------------------------------------------------------------");
403 sprintf (c_line,
" %2d rem_mem_base __x%016lx rem_mem_off ___x%016lx rem_mem_len __x%016lx", i,
407 sprintf (c_line,
" %2d rem_cam_base __x%016lx rem_cam_off ___x%016lx rem_cam_len __________x%08x", i,
411 sprintf (c_line,
" %2d loc_mem_base __x%016lx loc_mem_len ___x%016lx loc_pipe_base x%016lx", i,
415 sprintf (c_line,
" %2d pipe_off ______x%016lx pipe_seg_len __x%016lx pipe_len _______________%5d", i,
419 sprintf (c_line,
" %2d init_tab_off __________x%08x init_tab_len __________x%08x", i, ps_setup->
bl_init_tab_off[i],
423 sprintf (c_line,
" %2d controller_id _____________%5d sy_asy_flg ________________%5d trig_stat_nr _____________%5d", i,
427 sprintf (c_line,
" %2d trig_cvt __________________%5d trig_fct __________________%5d rd_flg ___________________%5d", i,
431 sprintf (c_line,
" %2d i_se_typ __________________%5d i_se_subtyp _______________%5d i_se_procid ______________%5d", i,
439 sprintf (c_line,
" %2d %2d bl_max_se_len x%08x bl_rd_tab_off x%08x bi_rd_tab_len x%08x", i, j,
449 if (ps_set_ml != NULL )
451 sprintf (c_line,
"S_set_ml ********************************************************************");
454 sprintf (c_line,
" l_version ______________%5d l_endian _______________%5d", ps_set_ml->
l_version,
458 sprintf (c_line,
" l_set_ml_lw ____________%5d l_fix_lw _______________%5d", ps_set_ml->
l_set_ml_lw,
462 sprintf (c_line,
" l_ml__n_rd_pipe ________%5d l_short_len ____________%5d", ps_set_ml->
l_ml__n_rd_pipe,
466 sprintf (c_line,
" l_long_len _____________%5d l_n_rd_pipe ____________%5d", ps_set_ml->
l_long_len,
470 sprintf (c_line,
" l_out_mode _____________%5d l_wr_pipe_base_addr x%16lx", ps_set_ml->
l_out_mode,
474 sprintf (c_line,
" l_wr_pipe_len ______x%016lx l_wr_pipe_n_frag _______%5d", ps_set_ml->
l_wr_pipe_len,
478 sprintf (c_line,
" l_ev_buf_len ___________%5d l_n_ev_buf _____________%5d", ps_set_ml->
l_ev_buf_len,
482 sprintf (c_line,
" l_n_stream _____________%5d", ps_set_ml->
l_n_stream);
485 sprintf (c_line,
" c_hostname _____________%s", ps_set_ml->
c_hostname);
488 sprintf (c_line,
" Pipes ----------------------------------------------------------------------");
493 sprintf (c_line,
" %2d c_rd_hostname %s", i, ps_set_ml->
c_rd_hostname[i]);
496 sprintf (c_line,
" %2d c_sbs_setup_path %s", i, ps_set_ml->
c_sbs_setup_path[i]);
499 sprintf (c_line,
" %2d l_rd_pipe_base_addr x%16lx l_rd_pipe_len _____x%016lx", i,
503 sprintf (c_line,
" %2d l_rd_pipe_n_frag _______%5d l_rd_host_flg _________%5d", i,
510 if (ps_set_mo != NULL )
512 sprintf (c_line,
"S_set_mo ********************************************************************");
515 sprintf (c_line,
"ds_hostname dr_hostname active");
522 for (i = 0; i < j; i++)
531 sprintf (c_line,
"%2d l_ev_buf_len ___%5d l_n_ev_buf __%5d l_n_stream __%5d", i + 1, ps_set_mo->
l_ev_buf_len[i],
536 sprintf (c_line,
"l_max_evt_size ___%8d l_n_frag ____%5d", ps_set_mo->
l_max_evt_size, ps_set_mo->
l_n_frag);
CHARS c_display[SBS__STR_LEN_64]
INTU4 bl_dr_active[MO__N_NODE]
ADDRS lp_rem_mem_base[SBS__N_CR]
INTS4 l_rd_pipe_base_addr[ML__N_RD_PIPE]
CHARS c_exper[SBS__STR_LEN_64]
INTU4 bh_controller_id[SBS__N_CR]
CHARS * f_ut_time(CHARS *)
ADDRS bl_rem_mem_len[SBS__N_CR]
ADDRS bl_special_meb_trig_base
CHARS c_rd_hostname[ML__N_RD_PIPE][16]
ADDRS bl_rem_cam_off[SBS__N_CR]
INTU4 bl_trig_fct[SBS__N_CR]
CHARS c_user[SBS__STR_LEN_64]
#define SYS__read_cam_slav
CHARS c_ds_hostname[MO__N_NODE][16]
ADDRS bl_loc_mem_len[SBS__N_CR]
CHARS c_tape_label[SBS__STR_LEN_64]
CHARS c_host[SBS__STR_LEN_64]
INTS4 i_se_subtyp[SBS__N_CR]
CHARS c_devname[SBS__STR_LEN_64]
CHARS c_ml_setup_name[SBS__STR_LEN_64]
INTU4 bh_trig_stat_nr[SBS__N_CR]
CHARS c_exprun[SBS__STR_LEN_64]
INTU4 bi_rd_tab_len[SBS__N_CR][SBS__N_TRG_TYP]
INTU4 l_n_ev_buf[MO__N_NODE]
CHARS c_dr_hostname[MO__N_NODE][16]
INTU4 bl_n_evt[SBS__N_TRG_TYP]
INTU4 l_n_stream[MO__N_NODE]
INTU4 bl_n_strserv_kbytes
ADDRS bl_pipe_seg_len[SBS__N_CR]
INTU4 bl_n_trig[SBS__N_TRG_TYP]
ADDRS lp_loc_mem_base[SBS__N_CR]
CHARS c_out_chan[SBS__STR_LEN_64]
INTU4 bl_n_si[SBS__N_TRG_TYP]
INTU4 l_pid[SYS__N_MAX_PROCS]
INTU4 l_ev_buf_len[MO__N_NODE]
CHARS c_pathstr[SBS__STR_LEN_64]
ADDRS bl_pipe_off[SBS__N_CR]
INTU4 bh_daqst_initalized
INTU4 bl_init_tab_off[SBS__N_CR]
CHARS c_setup_name[SBS__STR_LEN_64]
INTS4 l_rd_pipe_n_frag[ML__N_RD_PIPE]
ADDRS lp_loc_pipe_base[SBS__N_CR]
INTU4 bh_event_serv_ready
INTU4 bl_cvc_irq_mask_off
INTU4 bl_r_strserv_kbytes
INTU4 bh_sy_asy_flg[SBS__N_CR]
CHARS c_anal_segm_name[SBS__STR_LEN_64]
INTU4 l_type[SYS__N_MAX_PROCS]
ADDRS bl_rem_mem_off[SBS__N_CR]
ADDRS bl_ml_pipe_base_addr
INTU4 bl_cvc_irq_source_off
INTS4 i_se_procid[SBS__N_CR]
CHARS c_pname[SYS__N_MAX_PROCS][SBS__STR_LEN_64]
INTS4 l_rd_pipe_len[ML__N_RD_PIPE]
INTS4 l_wr_pipe_base_addr
INTS4 f_ut_seg_show(s_daqst *ps_daqst, s_setup *ps_setup, s_set_ml *ps_set_ml, s_set_mo *ps_set_mo)
CHARS c_date[SBS__STR_LEN_64]
CHARS c_readout_name[SBS__STR_LEN_64]
INTU4 bl_rd_tab_off[SBS__N_CR][SBS__N_TRG_TYP]
CHARS c_remote[SBS__STR_LEN_64]
INTU4 bl_rem_cam_len[SBS__N_CR]
INTU4 bl_max_se_len[SBS__N_CR][SBS__N_TRG_TYP]
INTU4 bh_pact[SYS__N_MAX_PROCS]
CHARS c_sbs_setup_path[ML__N_RD_PIPE][128]
INTU4 bi_init_tab_len[SBS__N_CR]
INTS4 l_pprio[SYS__N_MAX_PROCS]
INTU4 bh_running[SYS__N_MAX_PROCS]
INTS4 i_se_typ[SBS__N_CR]
INTU4 bh_rd_flg[SBS__N_CR]
INTS4 l_rd_host_flg[ML__N_RD_PIPE]
INTU4 bl_trig_cvt[SBS__N_CR]
ADDRS lp_rem_cam_base[SBS__N_CR]
INTU4 bl_pipe_len[SBS__N_CR]
INTU4 bh_special_meb_trig_type