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