GSI Object Oriented Online Offline (Go4)  GO4-6.1.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
f_ut_seg_show.c
Go to the documentation of this file.
1 // $Id: f_ut_seg_show.c 3331 2021-10-18 11:11:11Z linev $
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 // print of daq status, setup, and multi layer setup
15 
16 #include "typedefs.h"
17 #include <stdio.h>
18 #include <string.h>
19 #include <stddef.h>
20 
21 #include "sys_def.h"
22 #include "sbs_def.h"
23 #include "ml_def.h"
24 #include "err_mask_def.h"
25 #include "errnum_def.h"
26 #include "f_ut_time.h"
27 #include "f_ut_seg_show.h"
28 
29 #ifdef Linux
30 #define LOUT printf("%s\n",c_line);
31 #endif
32 #ifdef Solaris
33 #define LOUT printf("%s\n",c_line);
34 #endif
35 #ifdef Darwin
36 #define LOUT printf("%s\n",c_line);
37 #endif
38 
39 #ifdef WIN32
40 #define LOUT printf("%s\n",c_line);
41 #endif
42 #ifdef Lynx
43 #include "f_ut_error.h"
44 #define LOUT f_ut_error("",ERR__MSG_INFO,0,c_line,MASK__PRTTERM);
45 #endif
46 
47 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)
48 {
49  INTS4 i, j;
50  CHARX c_time[32];
51  CHARX c_line[512];
52  CHARX *ps_master[16] = { "CVC", "E6", "E7", "AEB", "CBV", "CVI", "CAV", "RIO2", "PC", "RIO3", "V32C32", "RIO4", "PCx86",
53  "nn", "nn", "nn" };
54 
55  sprintf (c_line, "%s", f_ut_time (c_time));
56  LOUT
57  ;
58  if (ps_daqst != NULL )
59  {
60  sprintf (c_line, "S_daqst *********************************************************************");
61  LOUT
62  ;
63  sprintf (c_line, " l_version __________%5d l_endian ___________%5d", ps_daqst->l_version, ps_daqst->l_endian);
64  LOUT
65  ;
66  sprintf (c_line, " l_daqst_lw _________%5d l_fix_lw ___________%5d", ps_daqst->l_daqst_lw, ps_daqst->l_fix_lw);
67  LOUT
68  ;
69  sprintf (c_line, " l_sys__n_max_procs _%5d l_sbs__str_len_64 __%5d", ps_daqst->l_sys__n_max_procs,
70  ps_daqst->l_sbs__str_len_64);
71  LOUT
72  ;
73  sprintf (c_line, " l_sbs__n_trg_typ ___%5d bh_verbose_flg _____%5d", ps_daqst->l_sbs__n_trg_typ,
74  ps_daqst->bh_verbose_flg);
75  LOUT
76  ;
77  sprintf (c_line, " bl_n_events ___%10d bl_r_events ________%5d", ps_daqst->bl_n_events, ps_daqst->bl_r_events);
78  LOUT
79  ;
80  sprintf (c_line, " bl_n_buffers ___%9d bl_r_buffers _______%5d", ps_daqst->bl_n_buffers,
81  ps_daqst->bl_r_buffers);
82  LOUT
83  ;
84  sprintf (c_line, " bl_n_bufstream _%9d bl_r_bufstream _____%5d", ps_daqst->bl_n_bufstream,
85  ps_daqst->bl_r_bufstream);
86  LOUT
87  ;
88  sprintf (c_line, " bl_n_kbyte ____%10d bl_r_kbyte _________%5d", ps_daqst->bl_n_kbyte, ps_daqst->bl_r_kbyte);
89  LOUT
90  ;
91  sprintf (c_line, " bl_n_evserv_events %8d bl_r_evserv_events %5d", ps_daqst->bl_n_evserv_events,
92  ps_daqst->bl_r_evserv_events);
93  LOUT
94  ;
95  sprintf (c_line, " bl_n_evserv_kbytes %8d bl_r_evserv_kbytes _%5d", ps_daqst->bl_n_evserv_kbytes,
96  ps_daqst->bl_r_evserv_kbytes);
97  LOUT
98  ;
99  sprintf (c_line, " bl_n_strserv_bufs %9d bl_r_strserv_bufs __%5d", ps_daqst->bl_n_strserv_bufs,
100  ps_daqst->bl_r_strserv_bufs);
101  LOUT
102  ;
103  sprintf (c_line, " bl_n_strserv_kbytes %7d bl_r_strserv_kbytes %5d", ps_daqst->bl_n_strserv_kbytes,
104  ps_daqst->bl_r_strserv_kbytes);
105  LOUT
106  ;
107  sprintf (c_line, " bl_n_kbyte_tape %10d bl_r_kbyte_tape ____%5d", ps_daqst->bl_n_kbyte_tape,
108  ps_daqst->bl_r_kbyte_tape);
109  LOUT
110  ;
111  sprintf (c_line, " bl_n_kbyte_file %9d l_free_streams________%5d", ps_daqst->bl_n_kbyte_file,
112  ps_daqst->l_free_streams);
113  LOUT
114  ;
115  sprintf (c_line, " bl_no_streams ______%5d bl_no_stream_buf ___%5d", ps_daqst->bl_no_streams,
116  ps_daqst->bl_no_stream_buf);
117  LOUT
118  ;
119  sprintf (c_line, " l_block_length _____%5d l_record_size ______%5d", ps_daqst->l_block_length,
120  ps_daqst->l_record_size);
121  LOUT
122  ;
123  sprintf (c_line, " l_block_size _______%5d bl_flush_time ______%5d", ps_daqst->l_block_size,
124  ps_daqst->bl_flush_time);
125  LOUT
126  ;
127  sprintf (c_line, " l_open_vol _________%5d l_open_file ________%5d", ps_daqst->l_open_vol,
128  ps_daqst->l_open_file);
129  LOUT
130  ;
131  sprintf (c_line, " l_max_tape_size __%7d l_pos_on_tape ____%7d", ps_daqst->l_max_tape_size,
132  ps_daqst->l_pos_on_tape);
133  LOUT
134  ;
135  sprintf (c_line, " l_file_auto ________%5d l_file_cur _________%5d", ps_daqst->l_file_auto - 1,
136  ps_daqst->l_file_cur - 1);
137  LOUT
138  ;
139  sprintf (c_line, " l_file_count _______%5d l_pathnum __________%5d", ps_daqst->l_file_count,
140  ps_daqst->l_pathnum);
141  LOUT
142  ;
143  sprintf (c_line, " l_file_size ________%5d l_block_count ______%5d", ps_daqst->l_file_size,
144  ps_daqst->l_block_count);
145  LOUT
146  ;
147  sprintf (c_line, " l_rate_on __________%5d l_rate_sec _________%5d", ps_daqst->l_rate_on, ps_daqst->l_rate_sec);
148  LOUT
149  ;
150  sprintf (c_line, " bl_histo_port _______%5d bl_run_time ________%5d", ps_daqst->bl_histo_port,
151  ps_daqst->bl_run_time);
152  LOUT
153  ;
154  sprintf (c_line, " l_irq_driv_id ______%5d l_irq_maj_dev_id ___%5d", ps_daqst->l_irq_driv_id,
155  ps_daqst->l_irq_maj_dev_id);
156  LOUT
157  ;
158  for (i = 0; i < 16; i += 4)
159  {
160  sprintf (c_line, " user [%02d] %9d [%02d] %9d [%02d] %9d [%02d] %9d", i, ps_daqst->bl_user[i], i + 1,
161  ps_daqst->bl_user[i + 1], i + 2, ps_daqst->bl_user[i + 2], i + 3, ps_daqst->bl_user[i + 3]);
162  LOUT
163  ;
164  }
165  for (i = 0; i < SBS__N_TRG_TYP; i++)
166  if (ps_daqst->bl_n_trig[i] != 0)
167  {
168  sprintf (c_line, " %2d bl_n_trig %9d bl_n_si _____%9d bl_n_evt _%9d", i, ps_daqst->bl_n_trig[i],
169  ps_daqst->bl_n_si[i], ps_daqst->bl_n_evt[i]);
170  LOUT
171  ;
172  }
173  sprintf (c_line, " bl_spill_on _______%d bl_delayed_eb_ena ___%d bl_event_build_on %d", ps_daqst->bl_spill_on,
174  ps_daqst->bl_delayed_eb_ena, ps_daqst->bl_event_build_on);
175  LOUT
176  ;
177 
178  sprintf (c_line, " bl_trans_ready ___%2d bl_trans_connected _%2d bl_dabc_enabled _%3d",
179  ps_daqst->bl_trans_ready, ps_daqst->bl_trans_connected, ps_daqst->bl_dabc_enabled);
180  LOUT
181  ;
182 
183  sprintf (c_line, " bl_strsrv_scale __%2d bl_strsrv_sync ______%d bl_strsrv_keep ___%d",
184  ps_daqst->bl_strsrv_scale, ps_daqst->bl_strsrv_sync, ps_daqst->bl_strsrv_keep);
185  LOUT
186  ;
187  sprintf (c_line, " bl_strsrv_scaled __%d bl_strsrv_nosync ____%d bl_strsrv_nokeep _%d",
188  ps_daqst->bl_strsrv_scaled, ps_daqst->bl_strsrv_nosync, ps_daqst->bl_strsrv_nokeep);
189  LOUT
190  ;
191  sprintf (c_line, " bl_evtsrv_maxcli _%2d bl_evtsrv_scale ____%2d bl_evtsrv_events %3d",
192  ps_daqst->bl_evtsrv_maxcli, ps_daqst->bl_evtsrv_scale, ps_daqst->bl_evtsrv_events);
193  LOUT
194  ;
195  sprintf (c_line, " bl_evtsrv_all _____%d bl_esosrv_maxcli ___%2d bl_rfio_connected %3d",
196  ps_daqst->bl_evtsrv_all, ps_daqst->bl_esosrv_maxcli, ps_daqst->bl_rfio_connected);
197  LOUT
198  ;
199 //sprintf(c_line," bl_pipe_slots ___%3d bl_pipe_slots_filled %3d",
200 //ps_daqst->bl_pipe_slots, ps_daqst->bl_pipe_slots_filled);LOUT;
201 //sprintf(c_line," bl_pipe_size_KB %6d bl_pipe_filled_KB %6d",
202 //ps_daqst->bl_pipe_size_KB, ps_daqst->bl_pipe_filled_KB);LOUT;
203 
204  sprintf (c_line, " c_user ______________%s", ps_daqst->c_user);
205  LOUT
206  ;
207  sprintf (c_line, " c_date ______________%s", ps_daqst->c_date);
208  LOUT
209  ;
210  sprintf (c_line, " c_exprun ____________%s", ps_daqst->c_exprun);
211  LOUT
212  ;
213  sprintf (c_line, " c_exper _____________%s", ps_daqst->c_exper);
214  LOUT
215  ;
216  sprintf (c_line, " c_host ______________%s", ps_daqst->c_host);
217  LOUT
218  ;
219  sprintf (c_line, " c_remote______________%s", ps_daqst->c_remote);
220  LOUT
221  ;
222  sprintf (c_line, " c_display_____________%s", ps_daqst->c_display);
223  LOUT
224  ;
225  sprintf (c_line, " c_anal_segm_name ____%s", ps_daqst->c_anal_segm_name);
226  LOUT
227  ;
228  sprintf (c_line, " c_setup_name ________%s", ps_daqst->c_setup_name);
229  LOUT
230  ;
231  sprintf (c_line, " c_ml/o_setup_name ___%s", ps_daqst->c_ml_setup_name);
232  LOUT
233  ;
234  sprintf (c_line, " c_readout_name ______%s", ps_daqst->c_readout_name);
235  LOUT
236  ;
237  sprintf (c_line, " c_pathstr ___________%s", ps_daqst->c_pathstr);
238  LOUT
239  ;
240  sprintf (c_line, " c_devname ___________%s", ps_daqst->c_devname);
241  LOUT
242  ;
243  sprintf (c_line, " c_tape_label ________%s", ps_daqst->c_tape_label);
244  LOUT
245  ;
246  sprintf (c_line, " c_file_name _________%s", ps_daqst->c_file_name);
247  LOUT
248  ;
249  sprintf (c_line, " c_out_chan __________%s", ps_daqst->c_out_chan);
250  LOUT
251  ;
252 
253  sprintf (c_line, " bh_daqst_initalized %d bh_acqui_started __%d bh_acqui_running _%d",
254  ps_daqst->bh_daqst_initalized, ps_daqst->bh_acqui_started, ps_daqst->bh_acqui_running);
255  LOUT
256  ;
257  sprintf (c_line, " bh_setup_loaded __%d bh_set_ml/o_loaded %d %d bh_cam_tab_loaded %d",
258  ps_daqst->bh_setup_loaded, ps_daqst->bh_set_ml_loaded, ps_daqst->bh_set_mo_loaded, ps_daqst->bh_cam_tab_loaded);
259  LOUT
260  ;
261  sprintf (c_line, " bh_trig_master ___%d bh_histo_enable ___%d bh_histo_ready ___%d", ps_daqst->bh_trig_master,
262  ps_daqst->bh_histo_enable, ps_daqst->bh_histo_ready);
263  LOUT
264  ;
265  sprintf (c_line, " bh_event_serv_ready %d bh_ena_evt_copy ___%d l_procs_run _______%2d",
266  ps_daqst->bh_event_serv_ready, ps_daqst->bh_ena_evt_copy, ps_daqst->l_procs_run);
267  LOUT
268  ;
269  sprintf (c_line, " m_dispatch _______%d m_msg_log _________%d m_util ___________%d",
270  ps_daqst->bh_running[SYS__dispatch], ps_daqst->bh_running[SYS__msg_log], ps_daqst->bh_running[SYS__util]);
271  LOUT
272  ;
273  sprintf (c_line, " m_collector ______%d m_transport _______%d m_read_cam_slav ____%d",
274  ps_daqst->bh_running[SYS__collector], ps_daqst->bh_running[SYS__transport],
275  ps_daqst->bh_running[SYS__read_cam_slav]);
276  LOUT
277  ;
278  sprintf (c_line, " m_read_meb _______%d m_event_serv ______%d m_esone_serv _____%d",
279  ps_daqst->bh_running[SYS__read_meb], ps_daqst->bh_running[SYS__event_serv],
280  ps_daqst->bh_running[SYS__esone_serv]);
281  LOUT
282  ;
283  sprintf (c_line, " m_stream_serv ____%d m_histogram _______%d m_sbs_mon ________%d",
284  ps_daqst->bh_running[SYS__stream_serv], ps_daqst->bh_running[SYS__histogram],
285  ps_daqst->bh_running[SYS__sbs_mon]);
286  LOUT
287  ;
288  sprintf (c_line, " m_prompt _________%d m_daq_rate _________%d m_smi _____________%d",
289  ps_daqst->bh_running[SYS__prompt], ps_daqst->bh_running[SYS__daq_rate], ps_daqst->bh_running[SYS__smi]);
290  LOUT
291  ;
292  sprintf (c_line, " m_ar _____________%d m_rirec ____________%d m_to ______________%d",
293  ps_daqst->bh_running[SYS__ar], ps_daqst->bh_running[SYS__rirec], ps_daqst->bh_running[SYS__to]);
294  LOUT
295  ;
296  sprintf (c_line, " m_ds ______________%d m_dr _______________%d m_vme_serv ________%d",
297  ps_daqst->bh_running[SYS__ds], ps_daqst->bh_running[SYS__dr], ps_daqst->bh_running[SYS__vme_serv]);
298  LOUT
299  ;
300 
301  sprintf (c_line, " Tasks ---------------------------------------------------------------------");
302  LOUT
303  ;
304  for (i = 0; i < ps_daqst->l_procs_run; i++)
305  {
306  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],
307  ps_daqst->bh_pact[i], ps_daqst->l_type[i], ps_daqst->c_pname[i]);
308  LOUT
309  ;
310  }
311  }
312 
313  if (ps_setup != NULL )
314  {
315  sprintf (c_line, "S_setup *********************************************************************");
316  LOUT
317  ;
318 
319  sprintf (c_line, " l_version ___________________________________%5d l_endian ___________________________________%5d", ps_setup->l_version,
320  ps_setup->l_endian);
321  LOUT
322  ;
323  sprintf (c_line, " bl_struc_len ________________________________%5d l_fix_lw ___________________________________%5d", ps_setup->bl_struc_len,
324  ps_setup->l_fix_lw);
325  LOUT
326  ;
327  sprintf (c_line, " bl_sbs__n_cr ________________________________%5d bl_sbs__n_trg_typ __________________________%5d", ps_setup->bl_sbs__n_cr,
328  ps_setup->bl_sbs__n_trg_typ);
329  LOUT
330  ;
331  sprintf (c_line, " bl_no_crates ________________________________%5d bh_crate_nr ________________________________%5d", ps_setup->bl_no_crates,
332  ps_setup->bh_crate_nr);
333  LOUT
334  ;
335  sprintf (c_line, " bl_se_meb_asy_len ___________________________%5d bh_rd_typ __________________________________%5d", ps_setup->bl_se_meb_asy_len,
336  ps_setup->bh_rd_typ);
337  LOUT
338  ;
339  sprintf (c_line, " bh_meb_asy_flg ______________________________%5d bh_col_mode ________________________________%5d", ps_setup->bh_meb_asy_flg,
340  ps_setup->bh_col_mode);
341  LOUT
342  ;
343  sprintf (c_line, " bh_meb_trig_mode ____________________________%5d bh_special_meb_trig_type ___________________%5d", ps_setup->bh_meb_trig_mode,
344  ps_setup->bh_special_meb_trig_type);
345  LOUT
346  ;
347  sprintf (c_line, " bl_loc_esone_base _______________x%016lx bl_rem_esone_base ______________x%016lx", ps_setup->bl_loc_esone_base,
348  ps_setup->bl_rem_esone_base);
349  LOUT
350  ;
351  sprintf (c_line, " bl_esone_off ____________________________x%08x bl_cvc_crr_off _________________________x%08x", ps_setup->bl_esone_off,
352  ps_setup->bl_cvc_crr_off);
353  LOUT
354  ;
355  sprintf (c_line, " bl_cvc_csr_off __________________________x%08x bl_cvc_clb_off _________________________x%08x", ps_setup->bl_cvc_csr_off,
356  ps_setup->bl_cvc_clb_off);
357  LOUT
358  ;
359  sprintf (c_line, " bl_ml_pipe_base_addr ____________x%016lx bl_ml_pipe_seg_len _____________x%016lx", ps_setup->bl_ml_pipe_base_addr,
360  ps_setup->bl_ml_pipe_seg_len);
361  LOUT
362  ;
363  sprintf (c_line, " bl_special_meb_trig_base ________x%016lx bl_ml_pipe_len _________________________x%08x",
364  ps_setup->bl_special_meb_trig_base, ps_setup->bl_ml_pipe_len);
365  LOUT
366  ;
367  sprintf (c_line, " lp_cvc_irq ______________________________x%08x bl_cvc_irq_len _________________________x%08x", ps_setup->lp_cvc_irq,
368  ps_setup->bl_cvc_irq_len);
369  LOUT
370  ;
371  sprintf (c_line, " bl_cvc_irq_source_off ___________________x%08x bl_cvc_irq_mask_off ____________________x%08x", ps_setup->bl_cvc_irq_source_off,
372  ps_setup->bl_cvc_irq_mask_off);
373  LOUT
374  ;
375  sprintf (c_line, " bl_ev_buf_len ________________%5d bl_n_ev_buf _______________%5d bl_n_stream ______________%5d",
376  ps_setup->bl_ev_buf_len, ps_setup->bl_n_ev_buf, ps_setup->bl_n_stream);
377  LOUT
378  ;
379  sprintf (c_line, " bi_evt_typ_sy ________________%5d bi_evt_typ_asy ____________%5d bi_evt_subtyp_sy _________%5d",
380  ps_setup->bi_evt_typ_sy, ps_setup->bi_evt_typ_asy, ps_setup->bi_evt_subtyp_sy);
381  LOUT
382  ;
383  sprintf (c_line, " bi_evt_subtyp_asy ____________%5d h_se_control ______________%5d h_rd_tab_flg _____________%5d",
384  ps_setup->bi_evt_subtyp_asy, ps_setup->h_se_control, ps_setup->h_rd_tab_flg);
385  LOUT
386  ;
387  sprintf (c_line, " bl_init_read_len _____________%5d bl_n_col_retry ____________%5d bi_master ___%4s_________%5d",
388  ps_setup->bl_init_read_len, ps_setup->bl_n_col_retry, ps_master[ps_setup->bi_master - 1], ps_setup->bi_master);
389  LOUT
390  ;
391  sprintf (c_line, " Crates ---------------------------------------------------------------------------------------------");
392  LOUT
393  ;
394  for (i = 0; i < SBS__N_CR; i++)
395  {
396  if ((ps_setup->lp_rem_mem_base[i] != 0) | (ps_setup->lp_rem_cam_base[i] != 0)
397  | (ps_setup->lp_loc_mem_base[i] != 0) | (ps_setup->lp_loc_pipe_base[i] != 0))
398  {
399  sprintf (c_line, " %2d rem_mem_base __x%016lx rem_mem_off ___x%016lx rem_mem_len __x%016lx", i,
400  ps_setup->lp_rem_mem_base[i], ps_setup->bl_rem_mem_off[i], ps_setup->bl_rem_mem_len[i]);
401  LOUT
402  ;
403  sprintf (c_line, " %2d rem_cam_base __x%016lx rem_cam_off ___x%016lx rem_cam_len __________x%08x", i,
404  ps_setup->lp_rem_cam_base[i], ps_setup->bl_rem_cam_off[i], ps_setup->bl_rem_cam_len[i]);
405  LOUT
406  ;
407  sprintf (c_line, " %2d loc_mem_base __x%016lx loc_mem_len ___x%016lx loc_pipe_base x%016lx", i,
408  ps_setup->lp_loc_mem_base[i], ps_setup->bl_loc_mem_len[i], ps_setup->lp_loc_pipe_base[i]);
409  LOUT
410  ;
411  sprintf (c_line, " %2d pipe_off ______x%016lx pipe_seg_len __x%016lx pipe_len _______________%5d", i,
412  ps_setup->bl_pipe_off[i], ps_setup->bl_pipe_seg_len[i], ps_setup->bl_pipe_len[i]);
413  LOUT
414  ;
415  sprintf (c_line, " %2d init_tab_off __________x%08x init_tab_len __________x%08x", i, ps_setup->bl_init_tab_off[i],
416  ps_setup->bi_init_tab_len[i]);
417  LOUT
418  ;
419  sprintf (c_line, " %2d controller_id _____________%5d sy_asy_flg ________________%5d trig_stat_nr _____________%5d", i,
420  ps_setup->bh_controller_id[i], ps_setup->bh_sy_asy_flg[i], ps_setup->bh_trig_stat_nr[i]);
421  LOUT
422  ;
423  sprintf (c_line, " %2d trig_cvt __________________%5d trig_fct __________________%5d rd_flg ___________________%5d", i,
424  ps_setup->bl_trig_cvt[i], ps_setup->bl_trig_fct[i], ps_setup->bh_rd_flg[i]);
425  LOUT
426  ;
427  sprintf (c_line, " %2d i_se_typ __________________%5d i_se_subtyp _______________%5d i_se_procid ______________%5d", i,
428  ps_setup->i_se_typ[i], ps_setup->i_se_subtyp[i], ps_setup->i_se_procid[i]);
429  LOUT
430  ;
431  for (j = 0; j < SBS__N_TRG_TYP; j++)
432  {
433  if (ps_setup->bi_rd_tab_len[i][j] != 0)
434  {
435  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,
436  ps_setup->bl_max_se_len[i][j], ps_setup->bl_rd_tab_off[i][j], ps_setup->bi_rd_tab_len[i][j]);
437  LOUT
438  ;
439  }
440  }
441  }
442  }
443  }
444 
445  if (ps_set_ml != NULL )
446  {
447  sprintf (c_line, "S_set_ml ********************************************************************");
448  LOUT
449  ;
450  sprintf (c_line, " l_version ______________%5d l_endian _______________%5d", ps_set_ml->l_version,
451  ps_set_ml->l_endian);
452  LOUT
453  ;
454  sprintf (c_line, " l_set_ml_lw ____________%5d l_fix_lw _______________%5d", ps_set_ml->l_set_ml_lw,
455  ps_set_ml->l_fix_lw);
456  LOUT
457  ;
458  sprintf (c_line, " l_ml__n_rd_pipe ________%5d l_short_len ____________%5d", ps_set_ml->l_ml__n_rd_pipe,
459  ps_set_ml->l_short_len);
460  LOUT
461  ;
462  sprintf (c_line, " l_long_len _____________%5d l_n_rd_pipe ____________%5d", ps_set_ml->l_long_len,
463  ps_set_ml->l_n_rd_pipe);
464  LOUT
465  ;
466  sprintf (c_line, " l_out_mode _____________%5d l_wr_pipe_base_addr x%16lx", ps_set_ml->l_out_mode,
467  (long unsigned) ps_set_ml->l_wr_pipe_base_addr);
468  LOUT
469  ;
470  sprintf (c_line, " l_wr_pipe_len ______x%016lx l_wr_pipe_n_frag _______%5d", (long unsigned) ps_set_ml->l_wr_pipe_len,
471  ps_set_ml->l_wr_pipe_n_frag);
472  LOUT
473  ;
474  sprintf (c_line, " l_ev_buf_len ___________%5d l_n_ev_buf _____________%5d", ps_set_ml->l_ev_buf_len,
475  ps_set_ml->l_n_ev_buf);
476  LOUT
477  ;
478  sprintf (c_line, " l_n_stream _____________%5d", ps_set_ml->l_n_stream);
479  LOUT
480  ;
481  sprintf (c_line, " c_hostname _____________%s", ps_set_ml->c_hostname);
482  LOUT
483  ;
484  sprintf (c_line, " Pipes ----------------------------------------------------------------------");
485  LOUT
486  ;
487  for (i = 0; i < ps_set_ml->l_n_rd_pipe; i++)
488  {
489  sprintf (c_line, " %2d c_rd_hostname %s", i, ps_set_ml->c_rd_hostname[i]);
490  LOUT
491  ;
492  sprintf (c_line, " %2d c_sbs_setup_path %s", i, ps_set_ml->c_sbs_setup_path[i]);
493  LOUT
494  ;
495  sprintf (c_line, " %2d l_rd_pipe_base_addr x%16lx l_rd_pipe_len _____x%016lx", i,
496  (long unsigned) ps_set_ml->l_rd_pipe_base_addr[i], (long unsigned) ps_set_ml->l_rd_pipe_len[i]);
497  LOUT
498  ;
499  sprintf (c_line, " %2d l_rd_pipe_n_frag _______%5d l_rd_host_flg _________%5d", i,
500  ps_set_ml->l_rd_pipe_n_frag[i], ps_set_ml->l_rd_host_flg[i]);
501  LOUT
502  ;
503  }
504  }
505 
506  if (ps_set_mo != NULL )
507  {
508  sprintf (c_line, "S_set_mo ********************************************************************");
509  LOUT
510  ;
511  sprintf (c_line, "ds_hostname dr_hostname active");
512  LOUT
513  ;
514  if (ps_set_mo->l_no_senders > ps_set_mo->l_no_receivers)
515  j = ps_set_mo->l_no_senders;
516  else
517  j = ps_set_mo->l_no_receivers;
518  for (i = 0; i < j; i++)
519  {
520  sprintf (c_line, "%2d %-16s %-16s %d", i + 1, &ps_set_mo->c_ds_hostname[i][0], &ps_set_mo->c_dr_hostname[i][0],
521  ps_set_mo->bl_dr_active[i]);
522  LOUT
523  ;
524  }
525  for (i = 0; i < ps_set_mo->l_no_receivers; i++)
526  {
527  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],
528  ps_set_mo->l_n_ev_buf[i], ps_set_mo->l_n_stream[i]);
529  LOUT
530  ;
531  }
532  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);
533  LOUT
534  ;
535 
536  }
537  return (0);
538 }
539 
540 
541 
542 
543 
INTU4 l_pos_on_tape
Definition: s_daqst.h:80
INTU4 bh_crate_nr
Definition: s_setup.h:51
#define SYS__esone_serv
Definition: sys_def.h:43
INTU4 bl_dr_active[MO__N_NODE]
Definition: s_set_mo.h:36
INTU4 bl_n_evt[SBS__N_TRG_TYP]
Definition: s_daqst.h:99
INTU4 bl_r_events
Definition: s_daqst.h:68
ADDRS lp_rem_mem_base[SBS__N_CR]
Definition: s_setup.h:168
INTU4 bl_rfio_connected
Definition: s_daqst.h:146
INTU4 bh_verbose_flg
Definition: s_daqst.h:115
INTS4 l_rd_pipe_base_addr[ML__N_RD_PIPE]
Definition: s_set_ml.h:83
#define SYS__smi
Definition: sys_def.h:48
INTU4 l_fix_lw
Definition: s_set_ml.h:44
INTU4 l_version
Definition: s_set_ml.h:42
INTU4 bl_cvc_crr_off
Definition: s_setup.h:94
INTU4 l_max_evt_size
Definition: s_set_mo.h:91
INTU4 bh_controller_id[SBS__N_CR]
Definition: s_setup.h:210
ADDRS bl_rem_mem_len[SBS__N_CR]
Definition: s_setup.h:175
CHARS c_user[SBS__STR_LEN_64]
Definition: s_daqst.h:147
CHARS c_host[SBS__STR_LEN_64]
Definition: s_daqst.h:151
INTU4 l_fix_lw
Definition: s_setup.h:44
CHARS * f_ut_time(CHARS *pc_time)
Definition: f_ut_time.c:93
CHARS c_pname[SYS__N_MAX_PROCS][SBS__STR_LEN_64]
Definition: s_daqst.h:165
INTU4 l_file_auto
Definition: s_daqst.h:83
INTU4 bi_master
Definition: s_setup.h:48
ADDRS bl_special_meb_trig_base
Definition: s_setup.h:138
#define SBS__N_TRG_TYP
Definition: sbs_def.h:28
CHARS c_devname[SBS__STR_LEN_64]
Definition: s_daqst.h:160
CHARS c_rd_hostname[ML__N_RD_PIPE][16]
Definition: s_set_ml.h:99
INTU4 bh_pact[SYS__N_MAX_PROCS]
Definition: s_daqst.h:114
INTU4 bl_no_crates
Definition: s_setup.h:50
ADDRS bl_rem_cam_off[SBS__N_CR]
Definition: s_setup.h:183
INTU4 bl_trig_fct[SBS__N_CR]
Definition: s_setup.h:222
INTU4 bi_evt_subtyp_asy
Definition: s_setup.h:62
INTU4 bh_ena_evt_copy
Definition: s_daqst.h:96
INTU4 bl_event_build_on
Definition: s_daqst.h:138
#define SYS__read_cam_slav
Definition: sys_def.h:42
INTS4 l_wr_pipe_n_frag
Definition: s_set_ml.h:74
INTU4 l_block_length
Definition: s_daqst.h:79
INTU4 bl_r_kbyte
Definition: s_daqst.h:71
INTU4 bl_evtsrv_maxcli
Definition: s_daqst.h:129
#define SYS__stream_serv
Definition: sys_def.h:44
INTU4 bl_evtsrv_scale
Definition: s_daqst.h:127
#define SYS__dr
Definition: sys_def.h:50
INTU4 l_no_senders
Definition: s_set_mo.h:34
INTU4 bl_trans_ready
Definition: s_daqst.h:140
INTU4 bl_strsrv_scale
Definition: s_daqst.h:121
INTS4 l_n_ev_buf
Definition: s_set_ml.h:62
INTU4 bh_cam_tab_loaded
Definition: s_daqst.h:56
INTU4 bh_meb_trig_mode
Definition: s_setup.h:116
INTU4 l_block_size
Definition: s_daqst.h:87
CHARS c_ds_hostname[MO__N_NODE][16]
Definition: s_set_mo.h:104
INTU4 l_set_ml_lw
Definition: s_set_ml.h:43
INTU4 bl_user[16]
Definition: s_daqst.h:143
#define SYS__event_serv
Definition: sys_def.h:37
ADDRS bl_loc_mem_len[SBS__N_CR]
Definition: s_setup.h:192
INTS4 l_ev_buf_len
Definition: s_set_ml.h:59
INTU4 bl_strsrv_nokeep
Definition: s_daqst.h:125
INTU4 bh_set_ml_loaded
Definition: s_daqst.h:54
INTU4 bh_col_mode
Definition: s_setup.h:70
CHARS c_exprun[SBS__STR_LEN_64]
Definition: s_daqst.h:149
INTU4 bl_n_ev_buf
Definition: s_setup.h:56
INTU4 l_long_len
Definition: s_set_ml.h:47
INTU4 bl_n_kbyte
Definition: s_daqst.h:61
INTU4 bl_no_stream_buf
Definition: s_daqst.h:145
INTU4 bl_n_kbyte_file
Definition: s_daqst.h:67
INTU4 l_sbs__n_trg_typ
Definition: s_daqst.h:48
INTU4 bh_meb_asy_flg
Definition: s_setup.h:99
INTS4 l_open_vol
Definition: s_daqst.h:89
INTU4 bl_se_meb_asy_len
Definition: s_setup.h:97
INTS4 i_se_subtyp[SBS__N_CR]
Definition: s_setup.h:224
INTU4 bl_evtsrv_all
Definition: s_daqst.h:130
INTS4 l_irq_maj_dev_id
Definition: s_daqst.h:119
INTU4 bl_n_strserv_bufs
Definition: s_daqst.h:64
INTS4 h_rd_tab_flg
Definition: s_setup.h:156
INTS4 l_pprio[SYS__N_MAX_PROCS]
Definition: s_daqst.h:106
INTU4 bh_trig_stat_nr[SBS__N_CR]
Definition: s_setup.h:220
CHARS c_pathstr[SBS__STR_LEN_64]
Definition: s_daqst.h:159
CHARS c_tape_label[SBS__STR_LEN_64]
Definition: s_daqst.h:161
INTS4 l_free_streams
Definition: s_daqst.h:57
INTS4 l_rate_sec
Definition: s_daqst.h:92
INTU4 bl_cvc_csr_off
Definition: s_setup.h:95
#define SYS__vme_serv
Definition: sys_def.h:54
INTU4 bl_flush_time
Definition: s_daqst.h:77
INTU4 bi_rd_tab_len[SBS__N_CR][SBS__N_TRG_TYP]
Definition: s_setup.h:245
#define SYS__dispatch
Definition: sys_def.h:39
INTU4 l_n_ev_buf[MO__N_NODE]
Definition: s_set_mo.h:99
CHARS c_dr_hostname[MO__N_NODE][16]
Definition: s_set_mo.h:106
INTU4 l_block_count
Definition: s_daqst.h:86
#define SYS__sbs_mon
Definition: sys_def.h:41
INTU4 l_file_cur
Definition: s_daqst.h:84
INTU4 bl_trans_connected
Definition: s_daqst.h:141
INTU4 bh_setup_loaded
Definition: s_daqst.h:53
INTU4 bl_n_buffers
Definition: s_daqst.h:59
ADDRS bl_ml_pipe_seg_len
Definition: s_setup.h:106
INTU4 bl_evtsrv_events
Definition: s_daqst.h:128
INTU4 bl_n_evserv_events
Definition: s_daqst.h:62
INTU4 l_n_frag
Definition: s_set_mo.h:94
INTU4 l_daqst_lw
Definition: s_daqst.h:44
INTU4 bl_ml_pipe_len
Definition: s_setup.h:110
INTU4 l_file_count
Definition: s_daqst.h:82
INTU4 l_no_receivers
Definition: s_set_mo.h:35
INTS4 l_irq_driv_id
Definition: s_daqst.h:118
INTU4 l_n_stream[MO__N_NODE]
Definition: s_set_mo.h:100
INTU4 bl_n_strserv_kbytes
Definition: s_daqst.h:65
INTU4 bh_acqui_running
Definition: s_daqst.h:51
INTU4 bl_esone_off
Definition: s_setup.h:93
CHARS c_remote[SBS__STR_LEN_64]
Definition: s_daqst.h:152
INTU4 bl_r_strserv_bufs
Definition: s_daqst.h:75
ADDRS bl_pipe_seg_len[SBS__N_CR]
Definition: s_setup.h:206
ADDRS lp_loc_mem_base[SBS__N_CR]
Definition: s_setup.h:189
INTU4 bl_n_events
Definition: s_daqst.h:58
INTU4 bh_trig_master
Definition: s_daqst.h:93
#define SYS__daq_rate
Definition: sys_def.h:47
#define SYS__ds
Definition: sys_def.h:49
INTU4 l_ev_buf_len[MO__N_NODE]
Definition: s_set_mo.h:98
INTU4 bl_r_bufstream
Definition: s_daqst.h:70
#define SYS__transport
Definition: sys_def.h:36
INTU4 bl_r_buffers
Definition: s_daqst.h:69
int INTS4
Definition: typedefs.h:28
INTU4 l_max_tape_size
Definition: s_daqst.h:81
INTU4 bl_n_kbyte_tape
Definition: s_daqst.h:66
CHARS c_ml_setup_name[SBS__STR_LEN_64]
Definition: s_daqst.h:157
ADDRS bl_pipe_off[SBS__N_CR]
Definition: s_setup.h:202
INTU4 bl_struc_len
Definition: s_setup.h:43
INTU4 bh_daqst_initalized
Definition: s_daqst.h:49
INTU4 bl_run_time
Definition: s_daqst.h:117
CHARS c_exper[SBS__STR_LEN_64]
Definition: s_daqst.h:150
INTU4 bl_init_tab_off[SBS__N_CR]
Definition: s_setup.h:231
INTU4 bl_n_bufstream
Definition: s_daqst.h:60
#define SYS__collector
Definition: sys_def.h:35
INTU4 l_sys__n_max_procs
Definition: s_daqst.h:46
INTU4 bl_strsrv_nosync
Definition: s_daqst.h:123
#define SYS__util
Definition: sys_def.h:40
INTS4 l_n_rd_pipe
Definition: s_set_ml.h:49
INTU4 bi_evt_typ_asy
Definition: s_setup.h:60
INTS4 l_rd_pipe_n_frag[ML__N_RD_PIPE]
Definition: s_set_ml.h:92
CHARS c_out_chan[SBS__STR_LEN_64]
Definition: s_daqst.h:163
ADDRS lp_loc_pipe_base[SBS__N_CR]
Definition: s_setup.h:199
INTU4 bh_event_serv_ready
Definition: s_daqst.h:120
INTU4 bl_cvc_irq_mask_off
Definition: s_setup.h:153
INTU4 bl_n_stream
Definition: s_setup.h:57
INTU4 bl_strsrv_sync
Definition: s_daqst.h:122
#define SYS__rirec
Definition: sys_def.h:52
#define SBS__N_CR
Definition: sbs_def.h:27
INTU4 bl_r_strserv_kbytes
Definition: s_daqst.h:76
INTU4 bh_sy_asy_flg[SBS__N_CR]
Definition: s_setup.h:214
INTU4 bl_n_trig[SBS__N_TRG_TYP]
Definition: s_daqst.h:97
INTU4 bl_strsrv_keep
Definition: s_daqst.h:124
INTS4 l_n_stream
Definition: s_set_ml.h:65
INTS4 l_out_mode
Definition: s_set_ml.h:54
ADDRS bl_rem_mem_off[SBS__N_CR]
Definition: s_setup.h:172
ADDRS bl_ml_pipe_base_addr
Definition: s_setup.h:102
CHARS c_setup_name[SBS__STR_LEN_64]
Definition: s_daqst.h:156
INTU4 bl_n_col_retry
Definition: s_setup.h:113
#define SYS__histogram
Definition: sys_def.h:45
INTU4 bl_esosrv_maxcli
Definition: s_daqst.h:131
INTU4 bl_cvc_irq_source_off
Definition: s_setup.h:152
INTS4 i_se_procid[SBS__N_CR]
Definition: s_setup.h:225
INTU4 bl_strsrv_scaled
Definition: s_daqst.h:126
INTS4 l_open_file
Definition: s_daqst.h:90
INTS4 l_wr_pipe_len
Definition: s_set_ml.h:71
INTS4 l_rd_pipe_len[ML__N_RD_PIPE]
Definition: s_set_ml.h:86
INTS4 l_wr_pipe_base_addr
Definition: s_set_ml.h:68
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)
Definition: f_ut_seg_show.c:47
INTU4 bl_n_si[SBS__N_TRG_TYP]
Definition: s_daqst.h:98
INTU4 l_version
Definition: s_setup.h:42
INTU4 bl_sbs__n_trg_typ
Definition: s_setup.h:46
INTU4 bh_set_mo_loaded
Definition: s_daqst.h:55
INTU4 bl_r_kbyte_tape
Definition: s_daqst.h:72
INTU4 bl_cvc_clb_off
Definition: s_setup.h:96
INTU4 bl_rd_tab_off[SBS__N_CR][SBS__N_TRG_TYP]
Definition: s_setup.h:241
INTU4 bi_evt_subtyp_sy
Definition: s_setup.h:61
INTU4 bh_running[SYS__N_MAX_PROCS]
Definition: s_daqst.h:103
INTU4 l_short_len
Definition: s_set_ml.h:46
#define SYS__read_meb
Definition: sys_def.h:34
INTU4 l_endian
Definition: s_daqst.h:42
INTU4 l_endian
Definition: s_set_ml.h:41
INTU4 bl_ev_buf_len
Definition: s_setup.h:55
INTU4 bl_rem_cam_len[SBS__N_CR]
Definition: s_setup.h:186
INTU4 bl_max_se_len[SBS__N_CR][SBS__N_TRG_TYP]
Definition: s_setup.h:239
INTU4 l_ml__n_rd_pipe
Definition: s_set_ml.h:45
ADDRS bl_loc_esone_base
Definition: s_setup.h:89
INTU4 l_version
Definition: s_daqst.h:43
INTU4 bi_evt_typ_sy
Definition: s_setup.h:59
CHARS c_readout_name[SBS__STR_LEN_64]
Definition: s_daqst.h:158
INTS4 h_se_control
Definition: s_setup.h:63
INTS4 l_pathnum
Definition: s_daqst.h:78
INTU4 bl_no_streams
Definition: s_daqst.h:142
INTU4 bl_cvc_irq_len
Definition: s_setup.h:151
CHARS c_sbs_setup_path[ML__N_RD_PIPE][128]
Definition: s_set_ml.h:102
#define SYS__ar
Definition: sys_def.h:51
INTU4 l_type[SYS__N_MAX_PROCS]
Definition: s_daqst.h:105
INTU4 bi_init_tab_len[SBS__N_CR]
Definition: s_setup.h:235
INTU4 l_endian
Definition: s_setup.h:41
CHARS c_file_name[256]
Definition: s_daqst.h:162
CHARS c_display[SBS__STR_LEN_64]
Definition: s_daqst.h:153
INTU4 l_fix_lw
Definition: s_daqst.h:45
INTU4 bh_histo_ready
Definition: s_daqst.h:95
char CHARX
Definition: typedefs.h:23
INTU4 lp_cvc_irq
Definition: s_setup.h:150
INTU4 l_procs_run
Definition: s_daqst.h:52
INTS4 l_rate_on
Definition: s_daqst.h:91
INTU4 bl_init_read_len
Definition: s_setup.h:162
INTS4 i_se_typ[SBS__N_CR]
Definition: s_setup.h:223
INTU4 bl_sbs__n_cr
Definition: s_setup.h:45
INTU4 bh_acqui_started
Definition: s_daqst.h:50
ADDRS bl_rem_esone_base
Definition: s_setup.h:91
INTU4 bh_rd_flg[SBS__N_CR]
Definition: s_setup.h:227
INTU4 l_pid[SYS__N_MAX_PROCS]
Definition: s_daqst.h:104
INTS4 l_rd_host_flg[ML__N_RD_PIPE]
Definition: s_set_ml.h:78
INTU4 bl_histo_port
Definition: s_daqst.h:116
INTU4 bl_spill_on
Definition: s_daqst.h:136
INTU4 l_record_size
Definition: s_daqst.h:88
INTU4 bl_r_evserv_kbytes
Definition: s_daqst.h:74
INTU4 bh_histo_enable
Definition: s_daqst.h:94
#define SYS__msg_log
Definition: sys_def.h:38
INTU4 bl_dabc_enabled
Definition: s_daqst.h:139
#define SYS__to
Definition: sys_def.h:53
CHARS c_date[SBS__STR_LEN_64]
Definition: s_daqst.h:148
INTU4 bl_trig_cvt[SBS__N_CR]
Definition: s_setup.h:221
INTU4 l_file_size
Definition: s_daqst.h:85
#define SYS__prompt
Definition: sys_def.h:46
INTU4 bh_rd_typ
Definition: s_setup.h:65
CHARS c_anal_segm_name[SBS__STR_LEN_64]
Definition: s_daqst.h:154
ADDRS lp_rem_cam_base[SBS__N_CR]
Definition: s_setup.h:181
INTU4 bl_n_evserv_kbytes
Definition: s_daqst.h:63
CHARS c_hostname[16]
Definition: s_set_ml.h:95
INTU4 bl_r_evserv_events
Definition: s_daqst.h:73
INTU4 bl_delayed_eb_ena
Definition: s_daqst.h:137
INTU4 bl_pipe_len[SBS__N_CR]
Definition: s_setup.h:209
INTU4 l_sbs__str_len_64
Definition: s_daqst.h:47
INTU4 bh_special_meb_trig_type
Definition: s_setup.h:133