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
ad12625f
Commit
ad12625f
authored
Sep 27, 2019
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master'
parents
6ebf5071
da186818
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
56 additions
and
64 deletions
+56
-64
nmps/exe/rs_nmps_bck/src/link_rule.mk
nmps/exe/rs_nmps_bck/src/link_rule.mk
+3
-4
nmps/exe/rs_nmps_mirror/src/link_rule.mk
nmps/exe/rs_nmps_mirror/src/link_rule.mk
+3
-4
nmps/exe/rs_nmps_trans/src/link_rule.mk
nmps/exe/rs_nmps_trans/src/link_rule.mk
+3
-4
sev/lib/sev/src/sev_dbms.cpp
sev/lib/sev/src/sev_dbms.cpp
+32
-32
src/exe/rt_elog/src/link_rule.mk
src/exe/rt_elog/src/link_rule.mk
+3
-4
src/exe/rt_elog_dump/src/link_rule.mk
src/exe/rt_elog_dump/src/link_rule.mk
+3
-4
src/exe/rt_ini/src/link_rule.mk
src/exe/rt_ini/src/link_rule.mk
+7
-9
src/tools/bld/src/link_rule_generic.mk
src/tools/bld/src/link_rule_generic.mk
+2
-3
No files found.
nmps/exe/rs_nmps_bck/src/link_rule.mk
View file @
ad12625f
ifndef
link_rule_mk
link_rule_mk
:=
1
link
=
$(ld)
$(elinkflags)
$(domap)
-o
$(export_exe)
\
$(export_obj)
$(objects)
$(rt_msg_eobjs)
\
$(pwr_eobj)
/rt_io_user.o
\
$(pwre_conf_libdir)
$(pwre_conf_libpwrrt)
$(pwre_conf_lib)
link
=
$(ld)
$(domap)
-o
$(export_exe)
$(export_obj)
$(objects)
\
$(rt_msg_eobjs)
$(pwr_eobj)
/rt_io_user.o
$(pwre_conf_libdir)
\
$(pwre_conf_libpwrrt)
$(pwre_conf_lib)
$(elinkflags)
endif
nmps/exe/rs_nmps_mirror/src/link_rule.mk
View file @
ad12625f
ifndef
link_rule_mk
link_rule_mk
:=
1
link
=
$(ld)
$(elinkflags)
$(domap)
-o
$(export_exe)
\
$(export_obj)
$(objects)
$(rt_msg_eobjs)
\
$(pwr_eobj)
/rt_io_user.o
\
$(pwre_conf_libdir)
$(pwre_conf_libpwrrt)
$(pwre_conf_lib)
link
=
$(ld)
$(domap)
-o
$(export_exe)
$(export_obj)
$(objects)
\
$(rt_msg_eobjs)
$(pwr_eobj)
/rt_io_user.o
$(pwre_conf_libdir)
\
$(pwre_conf_libpwrrt)
$(pwre_conf_lib)
$(elinkflags)
endif
nmps/exe/rs_nmps_trans/src/link_rule.mk
View file @
ad12625f
ifndef
link_rule_mk
link_rule_mk
:=
1
link
=
$(ld)
$(elinkflags)
$(domap)
-o
$(export_exe)
\
$(export_obj)
$(objects)
$(rt_msg_eobjs)
\
$(pwr_eobj)
/rt_io_user.o
-lpwr_nmps
\
$(pwre_conf_libdir)
$(pwre_conf_libpwrrt)
$(pwre_conf_lib)
link
=
$(ld)
$(domap)
-o
$(export_exe)
$(export_obj)
$(objects)
\
$(rt_msg_eobjs)
$(pwr_eobj)
/rt_io_user.o
-lpwr_nmps
$(pwre_conf_libdir)
\
$(pwre_conf_libpwrrt)
$(pwre_conf_lib)
$(elinkflags)
endif
sev/lib/sev/src/sev_dbms.cpp
View file @
ad12625f
...
...
@@ -2076,11 +2076,11 @@ int sev_dbms::get_values(pwr_tStatus* sts, void* thread, pwr_tOid oid,
thread
,
item
.
tablename
,
item
.
options
,
starttime
,
1
,
&
startid
);
if
(
*
sts
==
SEV__NOROWS
)
get_id_range
(
sts
,
thread
,
&
item
,
item
.
options
,
&
startid
,
0
);
get_id_value
(
thread
,
item
.
tablename
,
startid
,
type
,
size
,
get_id_value
(
thread
,
item
.
tablename
,
startid
,
type
,
size
,
startval
);
startvalue
=
startval
;
}
else
{
}
else
{
// Get id for starttime
*
sts
=
get_closest_time
(
thread
,
item
.
tablename
,
item
.
options
,
starttime
,
1
,
&
startid
);
...
...
@@ -4105,7 +4105,7 @@ int sev_dbms::get_closest_time(void* thread, char* tablename,
}
int
sev_dbms
::
get_id_value
(
void
*
thread
,
char
*
tablename
,
unsigned
int
id
,
pwr_eType
type
,
int
size
,
unsigned
int
id
,
pwr_eType
type
,
int
size
,
void
*
value
)
{
char
query
[
200
];
...
...
@@ -4779,9 +4779,9 @@ int sev_dbms::handle_objectchange(
}
int
sev_dbms
::
get_events
(
pwr_tStatus
*
sts
,
void
*
thread
,
pwr_tOid
oid
,
pwr_tMask
options
,
pwr_tMask
eventtypemask
,
pwr_tMask
options
,
pwr_tMask
eventtypemask
,
pwr_tMask
eventpriomask
,
char
*
eventtext
,
char
*
eventname
,
pwr_tTime
*
starttime
,
pwr_tTime
*
endtime
,
unsigned
int
numevents
,
pwr_tTime
*
starttime
,
pwr_tTime
*
endtime
,
unsigned
int
numevents
,
std
::
vector
<
sev_event
>
&
list
)
{
sev_item
item
;
...
...
@@ -4790,7 +4790,7 @@ int sev_dbms::get_events(pwr_tStatus *sts, void *thread, pwr_tOid oid,
return
0
;
}
char
query
[
7
00
];
char
query
[
13
00
];
char
starttimstr
[
40
];
char
endtimstr
[
40
];
pwr_tTime
stime
,
etime
;
...
...
@@ -4901,140 +4901,140 @@ int sev_dbms::get_events(pwr_tStatus *sts, void *thread, pwr_tOid oid,
if
(
eventtypemask
)
{
bool
first
=
true
;
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" and ("
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" and ("
);
if
(
eventtypemask
&
sev_mEventType_Ack
)
{
if
(
!
first
)
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
"eventtype = %d"
,
mh_eEvent_Ack
);
first
=
false
;
}
if
(
eventtypemask
&
sev_mEventType_Block
)
{
if
(
!
first
)
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
"eventtype = %d"
,
mh_eEvent_Block
);
first
=
false
;
}
if
(
eventtypemask
&
sev_mEventType_Cancel
)
{
if
(
!
first
)
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
"eventtype = %d"
,
mh_eEvent_Cancel
);
first
=
false
;
}
if
(
eventtypemask
&
sev_mEventType_CancelBlock
)
{
if
(
!
first
)
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
"eventtype = %d"
,
mh_eEvent_CancelBlock
);
first
=
false
;
}
if
(
eventtypemask
&
sev_mEventType_Missing
)
{
if
(
!
first
)
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
"eventtype = %d"
,
mh_eEvent_Missing
);
first
=
false
;
}
if
(
eventtypemask
&
sev_mEventType_Reblock
)
{
if
(
!
first
)
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
"eventtype = %d"
,
mh_eEvent_Reblock
);
first
=
false
;
}
if
(
eventtypemask
&
sev_mEventType_Return
)
{
if
(
!
first
)
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
"eventtype = %d"
,
mh_eEvent_Return
);
first
=
false
;
}
if
(
eventtypemask
&
sev_mEventType_Unblock
)
{
if
(
!
first
)
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
"eventtype = %d"
,
mh_eEvent_Unblock
);
first
=
false
;
}
if
(
eventtypemask
&
sev_mEventType_InfoSuccess
)
{
if
(
!
first
)
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
"eventtype = %d"
,
mh_eEvent_InfoSuccess
);
first
=
false
;
}
if
(
eventtypemask
&
sev_mEventType_Alarm
)
{
if
(
!
first
)
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
"eventtype = %d"
,
mh_eEvent_Alarm
);
first
=
false
;
}
if
(
eventtypemask
&
sev_mEventType_MaintenanceAlarm
)
{
if
(
!
first
)
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
"eventtype = %d"
,
mh_eEvent_MaintenanceAlarm
);
first
=
false
;
}
if
(
eventtypemask
&
sev_mEventType_SystemAlarm
)
{
if
(
!
first
)
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
"eventtype = %d"
,
mh_eEvent_SystemAlarm
);
first
=
false
;
}
if
(
eventtypemask
&
sev_mEventType_UserAlarm1
)
{
if
(
!
first
)
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
"eventtype = %d"
,
mh_eEvent_UserAlarm1
);
first
=
false
;
}
if
(
eventtypemask
&
sev_mEventType_UserAlarm2
)
{
if
(
!
first
)
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
"eventtype = %d"
,
mh_eEvent_UserAlarm2
);
first
=
false
;
}
if
(
eventtypemask
&
sev_mEventType_UserAlarm3
)
{
if
(
!
first
)
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
"eventtype = %d"
,
mh_eEvent_UserAlarm3
);
first
=
false
;
}
if
(
eventtypemask
&
sev_mEventType_UserAlarm4
)
{
if
(
!
first
)
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
"eventtype = %d"
,
mh_eEvent_UserAlarm4
);
first
=
false
;
}
if
(
eventtypemask
&
sev_mEventType_Info
)
{
if
(
!
first
)
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
"eventtype = %d"
,
mh_eEvent_Info
);
first
=
false
;
}
sprintf
(
&
where_part
[
strlen
(
where_part
)],
")"
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
")"
);
}
if
(
eventpriomask
)
{
bool
first
=
true
;
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" and ("
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" and ("
);
if
(
eventpriomask
&
sev_mEventPrio_A
)
{
if
(
!
first
)
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
"eventprio = %d"
,
mh_eEventPrio_A
);
first
=
false
;
}
if
(
eventpriomask
&
sev_mEventPrio_B
)
{
if
(
!
first
)
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
"eventprio = %d"
,
mh_eEventPrio_B
);
first
=
false
;
}
if
(
eventpriomask
&
sev_mEventPrio_C
)
{
if
(
!
first
)
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
"eventprio = %d"
,
mh_eEventPrio_C
);
first
=
false
;
}
if
(
eventpriomask
&
sev_mEventPrio_D
)
{
if
(
!
first
)
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
" or "
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
"eventprio = %d"
,
mh_eEventPrio_C
);
first
=
false
;
}
sprintf
(
&
where_part
[
strlen
(
where_part
)],
")"
);
sprintf
(
&
where_part
[
strlen
(
where_part
)],
")"
);
}
if
(
!
streq
(
eventtext
,
""
))
...
...
@@ -5108,7 +5108,7 @@ int sev_dbms::get_events(pwr_tStatus *sts, void *thread, pwr_tOid oid,
e
.
eventstatus
=
strtoul
(
row
[
j
++
],
0
,
10
);
list
.
push_back
(
e
);
}
printf
(
"ecnt %d
\n
"
,
list
.
size
());
printf
(
"ecnt %
l
d
\n
"
,
list
.
size
());
mysql_free_result
(
result
);
*
sts
=
SEV__SUCCESS
;
...
...
src/exe/rt_elog/src/link_rule.mk
View file @
ad12625f
ifndef
link_rule_mk
link_rule_mk
:=
1
link
=
$(ld)
$(linkflags)
$(domap)
-o
$(export_exe)
\
$(export_obj)
$(objects)
$(rt_msg_objs)
\
$(pwr_obj)
/rt_io_user.o
\
$(pwre_conf_libdir)
$(pwre_conf_libpwrrt)
$(pwre_conf_lib)
link
=
$(ld)
$(domap)
-o
$(export_exe)
$(export_obj)
$(objects)
\
$(rt_msg_objs)
$(pwr_obj)
/rt_io_user.o
$(pwre_conf_libdir)
\
$(pwre_conf_libpwrrt)
$(pwre_conf_lib)
$(linkflags)
endif
src/exe/rt_elog_dump/src/link_rule.mk
View file @
ad12625f
ifndef
link_rule_mk
link_rule_mk
:=
1
link
=
$(ld)
$(linkflags)
$(domap)
-o
$(export_exe)
\
$(export_obj)
$(objects)
$(rt_msg_objs)
\
$(pwr_obj)
/rt_io_user.o
\
$(pwre_conf_libdir)
$(pwre_conf_libpwrrt)
$(pwre_conf_lib)
link
=
$(ld)
$(domap)
-o
$(export_exe)
$(export_obj)
$(objects)
\
$(rt_msg_objs)
$(pwr_obj)
/rt_io_user.o
$(pwre_conf_libdir)
\
$(pwre_conf_libpwrrt)
$(pwre_conf_lib)
$(linkflags)
endif
src/exe/rt_ini/src/link_rule.mk
View file @
ad12625f
ifndef
link_rule_mk
link_rule_mk
:=
1
ifeq
($(export_type),exp)
link
=
$(ld)
$(explinkflags)
$(domap)
-o
$(export_exe)
\
$(export_obj)
$(objects)
$(rt_msg_objs)
$(rs_msg_objs)
\
$(pwr_obj)
/rt_io_user.o
\
$(pwre_conf_libdir)
$(pwre_conf_libpwrrt)
$(pwre_conf_lib)
ifeq
($(export_type),exp)
link
=
$(ld)
$(domap)
-o
$(export_exe)
$(export_obj)
$(objects)
\
$(rt_msg_objs)
$(rs_msg_objs)
$(pwr_obj)
/rt_io_user.o
$(pwre_conf_libdir)
\
$(pwre_conf_libpwrrt)
$(pwre_conf_lib)
$(explinkflags)
else
link
=
$(ld)
$(elinkflags)
$(domap)
-o
$(export_exe)
\
$(export_obj)
$(objects)
$(rt_msg_objs)
$(rs_msg_objs)
\
$(pwr_obj)
/rt_io_user.o
\
$(pwre_conf_libdir)
$(pwre_conf_libpwrrt)
$(pwre_conf_lib)
link
=
$(ld)
$(domap)
-o
$(export_exe)
$(export_obj)
$(objects)
\
$(rt_msg_objs)
$(rs_msg_objs)
$(pwr_obj)
/rt_io_user.o
$(pwre_conf_libdir)
\
$(pwre_conf_libpwrrt)
$(pwre_conf_lib)
$(elinkflags)
endif
endif
src/tools/bld/src/link_rule_generic.mk
View file @
ad12625f
ifndef
link_rule_mk
link_rule_mk
:=
1
link
=
$(ld)
$(elinkflags)
$(domap)
-o
$(export_exe)
\
$(export_obj)
$(objects)
$(rt_msg_objs)
\
$(pwre_conf_libdir)
$(pwre_conf_libpwrrt)
$(pwre_conf_lib)
link
=
$(ld)
$(domap)
-o
$(export_exe)
$(export_obj)
$(objects)
$(rt_msg_objs)
\
$(pwre_conf_libdir)
$(pwre_conf_libpwrrt)
$(pwre_conf_lib)
$(elinkflags)
endif
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