Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
HeteroFlow
THAPI
Commits
0a0ae678
Commit
0a0ae678
authored
Apr 20, 2020
by
Brice Videau
Browse files
Merge branch 'profiling'
parents
a2567d89
d4655a3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
ze/tracer_ze.sh.template
View file @
0a0ae678
#!/bin/sh
while
true
;
do
case
"
$1
"
in
-p
|
--profiling
)
shift
;
profiling
=
1
;
export
LTTNG_UST_ZE_PROFILE
=
1
;;
-v
|
--visualize
)
shift
;
lttng_view
=
1
;;
--
)
shift
;
break
;;
*
)
break
;;
...
...
@@ -15,11 +16,25 @@ else
lttng create my-userspace-ze-session
fi
lttng enable-channel
--userspace
--blocking-timeout
=
inf blocking-channel
lttng add-context
--userspace
--channel
=
blocking-channel
-t
vtid
-t
pthread_id
lttng enable-event
--channel
=
blocking-channel
--userspace
lttng_ust_ze:
*
lttng enable-event
--channel
=
blocking-channel
--userspace
lttng_ust_zet:
*
if
[
!
-z
"
$profiling
"
]
then
lttng enable-event
--channel
=
blocking-channel
--userspace
lttng_ust_ze_profiling:
*
fi
export
LTTNG_UST_ALLOW_BLOCKING
=
1
export
LD_PRELOAD
=
PATH_TO_LIB/tracer_ze.so:
$LD_PRELOAD
lttng start
ctrl_c
()
{
lttng stop
lttng destroy
exit
}
trap
ctrl_c INT
if
[
!
-z
"
$lttng_view
"
]
then
lttng view &
...
...
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