Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
65c102df
Commit
65c102df
authored
Sep 18, 2020
by
Claes
Committed by
Esteban Blanc
Dec 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sev server error handling bugfix for get events, and localhost valid as server name
parent
fd156132
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
12 deletions
+11
-12
sev/exe/sev_server/src/sev_server.cpp
sev/exe/sev_server/src/sev_server.cpp
+8
-11
src/lib/rt/src/rt_sevcli.c
src/lib/rt/src/rt_sevcli.c
+3
-1
No files found.
sev/exe/sev_server/src/sev_server.cpp
View file @
65c102df
...
...
@@ -1330,18 +1330,15 @@ void* sev_server::send_events_thread(void* arg)
endtime
=
net_NetTimeToTime
(
&
rmsg
->
EndTime
);
sev
->
m_db
->
get_item_idx
(
&
sts
,
&
item_idx
,
rmsg
->
Oid
,
(
char
*
)
"Events"
);
if
(
EVEN
(
sts
))
{
qcom_Free
(
&
lsts
,
rmsg
);
return
(
void
*
)
1
;
}
if
(
sev
->
m_read_threads
)
thread
=
sev
->
m_db
->
new_thread
();
if
(
ODD
(
sts
))
{
if
(
sev
->
m_read_threads
)
thread
=
sev
->
m_db
->
new_thread
();
sev
->
m_db
->
get_events
(
&
sts
,
thread
,
rmsg
->
Oid
,
sev
->
m_db
->
m_items
[
item_idx
].
options
,
rmsg
->
EventTypeMask
,
rmsg
->
EventPrioMask
,
rmsg
->
EventText
,
rmsg
->
EventName
,
&
starttime
,
&
endtime
,
rmsg
->
MaxEvents
,
list
);
sev
->
m_db
->
get_events
(
&
sts
,
thread
,
rmsg
->
Oid
,
sev
->
m_db
->
m_items
[
item_idx
].
options
,
rmsg
->
EventTypeMask
,
rmsg
->
EventPrioMask
,
rmsg
->
EventText
,
rmsg
->
EventName
,
&
starttime
,
&
endtime
,
rmsg
->
MaxEvents
,
list
);
}
if
(
ODD
(
sts
)
&&
list
.
size
()
!=
0
)
msize
=
sizeof
(
*
msg
)
+
(
list
.
size
()
-
1
)
*
sizeof
(
sev_sEvents
);
else
...
...
src/lib/rt/src/rt_sevcli.c
View file @
65c102df
...
...
@@ -123,7 +123,7 @@ int sevcli_set_servernode(pwr_tStatus* sts, sevcli_tCtx ctx, char* nodename)
if
(
EVEN
(
*
sts
))
return
0
;
if
(
str_NoCaseStrcmp
(
node
.
name
,
nodename
)
==
0
)
{
if
(
str_NoCaseStrcmp
(
node
.
name
,
nodename
)
==
0
||
str_NoCaseStrcmp
(
nodename
,
"localhost"
)
==
0
)
{
ctx
->
server
=
node
.
nid
;
*
sts
=
SEV__SUCCESS
;
return
1
;
...
...
@@ -813,6 +813,8 @@ int sevcli_get_events(pwr_tStatus* sts, sevcli_tCtx ctx, pwr_tOid oid,
for
(;;)
{
rmsg
=
(
sev_sMsgEventsGet
*
)
qcom_Get
(
sts
,
&
ctx
->
qid
,
&
get
,
tmo
);
if
(
*
sts
==
QCOM__TMO
||
!
rmsg
)
{
if
(
!
rmsg
)
*
sts
=
0
;
return
0
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment