Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kun
openairinterface5G
Commits
d3997824
Commit
d3997824
authored
8 years ago
by
Cédric Roux
Browse files
Options
Downloads
Patches
Plain Diff
add option -no-gui to disable GUI entirely for textlog
(no more event selector)
parent
23ec84ef
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/utils/T/tracer/remote.c
+12
-4
12 additions, 4 deletions
common/utils/T/tracer/remote.c
with
12 additions
and
4 deletions
common/utils/T/tracer/remote.c
+
12
−
4
View file @
d3997824
...
@@ -60,7 +60,8 @@ void usage(void)
...
@@ -60,7 +60,8 @@ void usage(void)
" by default, all is off
\n
"
" by default, all is off
\n
"
" -p <port> use given port (default %d)
\n
"
" -p <port> use given port (default %d)
\n
"
" -x GUI output
\n
"
" -x GUI output
\n
"
" -debug-gui active GUI debug logs
\n
"
,
" -debug-gui activate GUI debug logs
\n
"
" -no-gui disable GUI entirely
\n
"
,
DEFAULT_REMOTE_PORT
DEFAULT_REMOTE_PORT
);
);
exit
(
1
);
exit
(
1
);
...
@@ -121,6 +122,7 @@ int main(int n, char **v)
...
@@ -121,6 +122,7 @@ int main(int n, char **v)
gui
*
g
;
gui
*
g
;
int
gui_mode
=
0
;
int
gui_mode
=
0
;
view
*
out
;
view
*
out
;
int
gui_active
=
1
;
on_off_name
=
malloc
(
n
*
sizeof
(
char
*
));
if
(
on_off_name
==
NULL
)
abort
();
on_off_name
=
malloc
(
n
*
sizeof
(
char
*
));
if
(
on_off_name
==
NULL
)
abort
();
on_off_action
=
malloc
(
n
*
sizeof
(
int
));
if
(
on_off_action
==
NULL
)
abort
();
on_off_action
=
malloc
(
n
*
sizeof
(
int
));
if
(
on_off_action
==
NULL
)
abort
();
...
@@ -141,9 +143,12 @@ int main(int n, char **v)
...
@@ -141,9 +143,12 @@ int main(int n, char **v)
{
on_off_name
[
on_off_n
]
=
NULL
;
on_off_action
[
on_off_n
++
]
=
0
;
continue
;
}
{
on_off_name
[
on_off_n
]
=
NULL
;
on_off_action
[
on_off_n
++
]
=
0
;
continue
;
}
if
(
!
strcmp
(
v
[
i
],
"-x"
))
{
gui_mode
=
1
;
continue
;
}
if
(
!
strcmp
(
v
[
i
],
"-x"
))
{
gui_mode
=
1
;
continue
;
}
if
(
!
strcmp
(
v
[
i
],
"-debug-gui"
))
{
gui_logd
=
1
;
continue
;
}
if
(
!
strcmp
(
v
[
i
],
"-debug-gui"
))
{
gui_logd
=
1
;
continue
;
}
if
(
!
strcmp
(
v
[
i
],
"-no-gui"
))
{
gui_active
=
0
;
continue
;
}
usage
();
usage
();
}
}
if
(
gui_active
==
0
)
gui_mode
=
0
;
if
(
database_filename
==
NULL
)
{
if
(
database_filename
==
NULL
)
{
printf
(
"ERROR: provide a database file (-d)
\n
"
);
printf
(
"ERROR: provide a database file (-d)
\n
"
);
exit
(
1
);
exit
(
1
);
...
@@ -157,8 +162,10 @@ int main(int n, char **v)
...
@@ -157,8 +162,10 @@ int main(int n, char **v)
h
=
new_handler
(
database
);
h
=
new_handler
(
database
);
g
=
gui_init
();
if
(
gui_active
)
{
new_thread
(
gui_thread
,
g
);
g
=
gui_init
();
new_thread
(
gui_thread
,
g
);
}
if
(
gui_mode
)
{
if
(
gui_mode
)
{
widget
*
w
,
*
win
;
widget
*
w
,
*
win
;
...
@@ -198,7 +205,8 @@ int main(int n, char **v)
...
@@ -198,7 +205,8 @@ int main(int n, char **v)
if
(
is_on
[
l
])
if
(
is_on
[
l
])
if
(
write
(
s
,
&
l
,
sizeof
(
int
))
!=
sizeof
(
int
))
abort
();
if
(
write
(
s
,
&
l
,
sizeof
(
int
))
!=
sizeof
(
int
))
abort
();
setup_event_selector
(
g
,
database
,
s
,
is_on
);
if
(
gui_active
)
setup_event_selector
(
g
,
database
,
s
,
is_on
);
/* read messages */
/* read messages */
while
(
1
)
{
while
(
1
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment