This file is indexed.

/usr/include/titan/TitanLoggerControl.ttcn is in eclipse-titan 6.3.1-1build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
/******************************************************************************
 * Copyright (c) 2000-2017 Ericsson Telecom AB
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *   Balasko, Jeno
 *   Raduly, Csaba
 *
 ******************************************************************************/
module TitanLoggerControl {
/*
This module allows modification of logger parameters during run-time.
The module defines a number of external functions which can be called from TTCN-3 code.
The implementation of these external funtions is built into the TITAN runtime.

This module needs to be included in the project; linking of the runtime is automatic.
*/

external function set_log_file(in charstring plugin, in charstring filename);

external function set_log_entity_name(in charstring plugin, in boolean b);

external function get_log_entity_name(in charstring plugin) return boolean;

type enumerated verbosity
{
  compact,
  full
};

external function set_matching_verbosity(in charstring plugin, in verbosity v);

external function get_matching_verbosity(in charstring plugin) return verbosity;

type enumerated Severity // copy-paste from Logger.hh
{
    NOTHING_TO_LOG(0), // for compatibility

    ACTION_UNQUALIFIED,

    DEFAULTOP_ACTIVATE,
    DEFAULTOP_DEACTIVATE,
    DEFAULTOP_EXIT,
    DEFAULTOP_UNQUALIFIED,

    ERROR_UNQUALIFIED,

    EXECUTOR_RUNTIME,
    EXECUTOR_CONFIGDATA,
    EXECUTOR_EXTCOMMAND,
    EXECUTOR_COMPONENT,
    EXECUTOR_LOGOPTIONS,
    EXECUTOR_UNQUALIFIED,

    FUNCTION_RND,
    FUNCTION_UNQUALIFIED,

    PARALLEL_PTC,
    PARALLEL_PORTCONN,
    PARALLEL_PORTMAP,
    PARALLEL_UNQUALIFIED,

    TESTCASE_START,
    TESTCASE_FINISH,
    TESTCASE_UNQUALIFIED,

    PORTEVENT_PQUEUE,
    PORTEVENT_MQUEUE,
    PORTEVENT_STATE,
    PORTEVENT_PMIN,
    PORTEVENT_PMOUT,
    PORTEVENT_PCIN,
    PORTEVENT_PCOUT,
    PORTEVENT_MMRECV,
    PORTEVENT_MMSEND,
    PORTEVENT_MCRECV,
    PORTEVENT_MCSEND,
    PORTEVENT_DUALRECV,
    PORTEVENT_DUALSEND,
    PORTEVENT_UNQUALIFIED,
    PORTEVENT_SETSTATE,

    STATISTICS_VERDICT,
    STATISTICS_UNQUALIFIED,

    TIMEROP_READ,
    TIMEROP_START,
    TIMEROP_GUARD,
    TIMEROP_STOP,
    TIMEROP_TIMEOUT,
    TIMEROP_UNQUALIFIED,

    USER_UNQUALIFIED,

    VERDICTOP_GETVERDICT,
    VERDICTOP_SETVERDICT,
    VERDICTOP_FINAL,
    VERDICTOP_UNQUALIFIED,

    WARNING_UNQUALIFIED,

    // MATCHING and DEBUG should be at the end (not included in LOG_ALL)
    MATCHING_DONE,
    MATCHING_TIMEOUT,
    MATCHING_PCSUCCESS,
    MATCHING_PCUNSUCC,
    MATCHING_PMSUCCESS,
    MATCHING_PMUNSUCC,
    MATCHING_MCSUCCESS,
    MATCHING_MCUNSUCC,
    MATCHING_MMSUCCESS,
    MATCHING_MMUNSUCC,
    MATCHING_PROBLEM,
    MATCHING_UNQUALIFIED,

    DEBUG_ENCDEC,
    DEBUG_TESTPORT,
    DEBUG_USER,
    DEBUG_FRAMEWORK,
    DEBUG_UNQUALIFIED
};

type record of Severity Severities;

const Severities log_nothing    := {};

const Severities log_console_default :=
{
    ACTION_UNQUALIFIED,

    ERROR_UNQUALIFIED,

    TESTCASE_START, TESTCASE_FINISH, TESTCASE_UNQUALIFIED,

    STATISTICS_VERDICT, STATISTICS_UNQUALIFIED,
/*
    TIMEROP_READ, TIMEROP_START, TIMEROP_GUARD, TIMEROP_STOP, TIMEROP_TIMEOUT,
    TIMEROP_UNQUALIFIED,

    USER_UNQUALIFIED,

    VERDICTOP_GETVERDICT, VERDICTOP_SETVERDICT, VERDICTOP_FINAL, VERDICTOP_UNQUALIFIED,
*/
    WARNING_UNQUALIFIED
};

const Severities log_all :=
{
    ACTION_UNQUALIFIED,

    DEFAULTOP_ACTIVATE, DEFAULTOP_DEACTIVATE, DEFAULTOP_EXIT, DEFAULTOP_UNQUALIFIED,

    ERROR_UNQUALIFIED,

    EXECUTOR_RUNTIME, EXECUTOR_CONFIGDATA, EXECUTOR_EXTCOMMAND, EXECUTOR_COMPONENT,
    EXECUTOR_LOGOPTIONS, EXECUTOR_UNQUALIFIED,

    FUNCTION_RND, FUNCTION_UNQUALIFIED,

    PARALLEL_PTC, PARALLEL_PORTCONN, PARALLEL_PORTMAP, PARALLEL_UNQUALIFIED,

    TESTCASE_START, TESTCASE_FINISH, TESTCASE_UNQUALIFIED,

    PORTEVENT_PQUEUE, PORTEVENT_MQUEUE, PORTEVENT_STATE,
    PORTEVENT_PMIN, PORTEVENT_PMOUT, PORTEVENT_PCIN, PORTEVENT_PCOUT,
    PORTEVENT_MMRECV, PORTEVENT_MMSEND, PORTEVENT_MCRECV, PORTEVENT_MCSEND,
    PORTEVENT_DUALRECV, PORTEVENT_DUALSEND, PORTEVENT_UNQUALIFIED, PORTEVENT_SETSTATE,

    STATISTICS_VERDICT, STATISTICS_UNQUALIFIED,

    TIMEROP_READ, TIMEROP_START, TIMEROP_GUARD, TIMEROP_STOP, TIMEROP_TIMEOUT,
    TIMEROP_UNQUALIFIED,

    USER_UNQUALIFIED,

    VERDICTOP_GETVERDICT, VERDICTOP_SETVERDICT, VERDICTOP_FINAL, VERDICTOP_UNQUALIFIED,

    WARNING_UNQUALIFIED
};

const Severities log_everything :=
{
    ACTION_UNQUALIFIED,

    DEFAULTOP_ACTIVATE, DEFAULTOP_DEACTIVATE, DEFAULTOP_EXIT, DEFAULTOP_UNQUALIFIED,

    ERROR_UNQUALIFIED,

    EXECUTOR_RUNTIME, EXECUTOR_CONFIGDATA, EXECUTOR_EXTCOMMAND, EXECUTOR_COMPONENT,
    EXECUTOR_LOGOPTIONS, EXECUTOR_UNQUALIFIED,

    FUNCTION_RND, FUNCTION_UNQUALIFIED,

    PARALLEL_PTC, PARALLEL_PORTCONN, PARALLEL_PORTMAP, PARALLEL_UNQUALIFIED,

    TESTCASE_START, TESTCASE_FINISH, TESTCASE_UNQUALIFIED,

    PORTEVENT_PQUEUE, PORTEVENT_MQUEUE, PORTEVENT_STATE,
    PORTEVENT_PMIN, PORTEVENT_PMOUT, PORTEVENT_PCIN, PORTEVENT_PCOUT,
    PORTEVENT_MMRECV, PORTEVENT_MMSEND, PORTEVENT_MCRECV, PORTEVENT_MCSEND,
    PORTEVENT_DUALRECV, PORTEVENT_DUALSEND, PORTEVENT_UNQUALIFIED, PORTEVENT_SETSTATE,

    STATISTICS_VERDICT, STATISTICS_UNQUALIFIED,

    TIMEROP_READ, TIMEROP_START, TIMEROP_GUARD, TIMEROP_STOP, TIMEROP_TIMEOUT,
    TIMEROP_UNQUALIFIED,

    USER_UNQUALIFIED,

    VERDICTOP_GETVERDICT, VERDICTOP_SETVERDICT, VERDICTOP_FINAL, VERDICTOP_UNQUALIFIED,

    WARNING_UNQUALIFIED,

    // MATCHING and DEBUG should be at the end (not included in LOG_ALL)
    MATCHING_DONE,      MATCHING_TIMEOUT,
    MATCHING_PCSUCCESS, MATCHING_PCUNSUCC,
    MATCHING_PMSUCCESS, MATCHING_PMUNSUCC,
    MATCHING_MCSUCCESS, MATCHING_MCUNSUCC,
    MATCHING_MMSUCCESS, MATCHING_MMUNSUCC,
    MATCHING_PROBLEM,   MATCHING_UNQUALIFIED,

    DEBUG_ENCDEC, DEBUG_TESTPORT, DEBUG_USER, DEBUG_FRAMEWORK, DEBUG_UNQUALIFIED
};


// getters
external function get_console_mask(in charstring plugin) return Severities;
external function get_file_mask   (in charstring plugin) return Severities;

// setters
external function set_console_mask(in charstring plugin, in Severities s);
external function set_file_mask   (in charstring plugin, in Severities s);

// additive
external function add_to_console_mask(in charstring plugin, in Severities s);
external function add_to_file_mask   (in charstring plugin, in Severities s);

// subtractive
external function remove_from_console_mask(in charstring plugin, in Severities s);
external function remove_from_file_mask   (in charstring plugin, in Severities s);


}  // end of module