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
3d32f08c
Commit
3d32f08c
authored
Jul 12, 2005
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trace on GetAp and GetIp
parent
09e435df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
62 additions
and
48 deletions
+62
-48
wb/lib/wb/src/wb_gre.c
wb/lib/wb/src/wb_gre.c
+62
-48
No files found.
wb/lib/wb/src/wb_gre.c
View file @
3d32f08c
...
...
@@ -4364,7 +4364,7 @@ int gre_set_trace_attributes( gre_ctx grectx, char *host)
{
flow_eTraceType
trace_type
;
char
object_str
[
120
];
char
attr_str
[
80
]
;
char
attr_str
[
120
]
=
""
;
int
sts
,
i
,
j
,
size
;
vldh_t_wind
wind
;
unsigned
long
node_count
;
...
...
@@ -4374,6 +4374,7 @@ int gre_set_trace_attributes( gre_ctx grectx, char *host)
int
rows
;
pwr_sAttrRef
*
objarp
;
char
*
np
;
char
*
s
;
wind
=
grectx
->
wind
;
sts
=
vldh_get_nodes
(
wind
,
&
node_count
,
&
nodelist
);
...
...
@@ -4394,59 +4395,72 @@ int gre_set_trace_attributes( gre_ctx grectx, char *host)
flow_SetTraceAttr
(
(
*
node_ptr
)
->
hn
.
node_id
,
object_str
,
attr_str
,
trace_type
);
}
else
{
switch
(
(
*
node_ptr
)
->
ln
.
cid
)
{
case
pwr_cClass_GetAi
:
case
pwr_cClass_GetAo
:
case
pwr_cClass_GetAv
:
case
pwr_cClass_stoai
:
case
pwr_cClass_stoao
:
case
pwr_cClass_stoav
:
case
pwr_cClass_cstoai
:
case
pwr_cClass_cstoao
:
case
pwr_cClass_cstoav
:
case
pwr_cClass_GetIi
:
case
pwr_cClass_GetIo
:
case
pwr_cClass_GetIv
:
case
pwr_cClass_stoii
:
case
pwr_cClass_stoio
:
case
pwr_cClass_stoiv
:
case
pwr_cClass_cstoii
:
case
pwr_cClass_cstoio
:
case
pwr_cClass_cstoiv
:
sts
=
ldh_GetObjectBodyDef
(
wind
->
hw
.
ldhses
,
else
{
switch
(
(
*
node_ptr
)
->
ln
.
cid
)
{
case
pwr_cClass_GetAi
:
case
pwr_cClass_GetAo
:
case
pwr_cClass_GetAv
:
case
pwr_cClass_stoai
:
case
pwr_cClass_stoao
:
case
pwr_cClass_stoav
:
case
pwr_cClass_cstoai
:
case
pwr_cClass_cstoao
:
case
pwr_cClass_cstoav
:
case
pwr_cClass_GetIi
:
case
pwr_cClass_GetIo
:
case
pwr_cClass_GetIv
:
case
pwr_cClass_stoii
:
case
pwr_cClass_stoio
:
case
pwr_cClass_stoiv
:
case
pwr_cClass_cstoii
:
case
pwr_cClass_cstoio
:
case
pwr_cClass_cstoiv
:
case
pwr_cClass_GetAp
:
case
pwr_cClass_GetIp
:
sts
=
ldh_GetObjectBodyDef
(
wind
->
hw
.
ldhses
,
(
*
node_ptr
)
->
ln
.
cid
,
"DevBody"
,
1
,
&
bodydef
,
&
rows
);
if
(
EVEN
(
sts
)
)
return
sts
;
strcpy
(
object_str
,
""
);
for
(
j
=
0
;
j
<
rows
;
j
++
)
{
if
(
bodydef
[
j
].
Par
->
Output
.
Info
.
Type
==
pwr_eType_AttrRef
)
{
/* Get the objid stored in the parameter */
sts
=
ldh_GetObjectPar
(
wind
->
hw
.
ldhses
,
if
(
EVEN
(
sts
)
)
return
sts
;
strcpy
(
object_str
,
""
);
for
(
j
=
0
;
j
<
rows
;
j
++
)
{
if
(
bodydef
[
j
].
Par
->
Output
.
Info
.
Type
==
pwr_eType_AttrRef
)
{
/* Get the objid stored in the parameter */
sts
=
ldh_GetObjectPar
(
wind
->
hw
.
ldhses
,
(
*
node_ptr
)
->
ln
.
oid
,
"DevBody"
,
bodydef
[
j
].
ParName
,
(
char
**
)
&
objarp
,
&
size
);
if
(
EVEN
(
sts
))
return
sts
;
if
(
EVEN
(
sts
))
return
sts
;
sts
=
ldh_AttrRefToName
(
wind
->
hw
.
ldhses
,
objarp
,
sts
=
ldh_AttrRefToName
(
wind
->
hw
.
ldhses
,
objarp
,
cdh_mNName
,
&
np
,
&
size
);
if
(
EVEN
(
sts
))
strcpy
(
object_str
,
""
);
else
strcpy
(
object_str
,
np
);
free
((
char
*
)
objarp
);
break
;
}
}
break
;
default:
/* Store object name */
sts
=
ldh_ObjidToName
(
wind
->
hw
.
ldhses
,
(
*
node_ptr
)
->
ln
.
oid
,
ldh_eName_Hierarchy
,
object_str
,
sizeof
(
object_str
),
&
size
);
if
(
EVEN
(
sts
))
return
sts
;
if
(
EVEN
(
sts
))
strcpy
(
object_str
,
""
);
else
strcpy
(
object_str
,
np
);
free
((
char
*
)
objarp
);
break
;
}
}
break
;
default:
/* Store object name */
sts
=
ldh_ObjidToName
(
wind
->
hw
.
ldhses
,
(
*
node_ptr
)
->
ln
.
oid
,
ldh_eName_Hierarchy
,
object_str
,
sizeof
(
object_str
),
&
size
);
if
(
EVEN
(
sts
))
return
sts
;
}
switch
((
*
node_ptr
)
->
ln
.
cid
)
{
case
pwr_cClass_GetAp
:
case
pwr_cClass_GetIp
:
s
=
strrchr
(
object_str
,
'.'
);
if
(
s
)
{
strcpy
(
attr_str
,
s
+
1
);
*
s
=
0
;
}
break
;
default:
;
}
if
(
host
&&
strncmp
(
object_str
,
host
,
strlen
(
host
))
==
0
)
{
char
tmp
[
120
];
strcpy
(
tmp
,
"$host"
);
...
...
@@ -4454,7 +4468,7 @@ int gre_set_trace_attributes( gre_ctx grectx, char *host)
strcpy
(
object_str
,
tmp
);
}
flow_SetTraceAttr
(
(
*
node_ptr
)
->
hn
.
node_id
,
object_str
,
""
,
flow_eTraceType_User
);
attr_str
,
flow_eTraceType_User
);
}
node_ptr
++
;
}
...
...
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