Format
This commit is contained in:
parent
a84024a19c
commit
7fb7d9b842
2 changed files with 18 additions and 14 deletions
|
@ -1,6 +1,7 @@
|
||||||
# LTTng tracing interface
|
# LTTng tracing interface
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Temporary workaround
|
# Temporary workaround
|
||||||
sys.path = ['/usr/local/lib/python3.6/site-packages'] + sys.path
|
sys.path = ['/usr/local/lib/python3.6/site-packages'] + sys.path
|
||||||
from typing import List
|
from typing import List
|
||||||
|
@ -19,7 +20,7 @@ def lttng_setup(
|
||||||
full_path: str,
|
full_path: str,
|
||||||
ros_events: List[str] = DEFAULT_EVENTS_ROS,
|
ros_events: List[str] = DEFAULT_EVENTS_ROS,
|
||||||
kernel_events: List[str] = DEFAULT_EVENTS_KERNEL,
|
kernel_events: List[str] = DEFAULT_EVENTS_KERNEL,
|
||||||
context_names: List[str] = DEFAULT_CONTEXT
|
context_names: List[str] = DEFAULT_CONTEXT,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""
|
"""
|
||||||
Set up LTTng session, with events and context.
|
Set up LTTng session, with events and context.
|
||||||
|
@ -180,7 +181,7 @@ def _enable_channel(handle: lttng.Handle, channel: lttng.Channel) -> None:
|
||||||
def _enable_events(
|
def _enable_events(
|
||||||
handle: lttng.Handle,
|
handle: lttng.Handle,
|
||||||
events_list: List[lttng.Event],
|
events_list: List[lttng.Event],
|
||||||
channel_name: str
|
channel_name: str,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""
|
"""
|
||||||
Enable events list for a given handle and channel name, and check for errors.
|
Enable events list for a given handle and channel name, and check for errors.
|
||||||
|
@ -230,7 +231,10 @@ def _create_context_list(context_names_list: List[str]) -> List[lttng.EventConte
|
||||||
return context_list
|
return context_list
|
||||||
|
|
||||||
|
|
||||||
def _add_context(handles: List[lttng.Handle], context_list: List[lttng.EventContext]) -> None:
|
def _add_context(
|
||||||
|
handles: List[lttng.Handle],
|
||||||
|
context_list: List[lttng.EventContext],
|
||||||
|
) -> None:
|
||||||
"""
|
"""
|
||||||
Add context list to given handles, and check for errors.
|
Add context list to given handles, and check for errors.
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ DEFAULT_EVENTS_KERNEL = [
|
||||||
'block_rq_issue',
|
'block_rq_issue',
|
||||||
'block_bio_frontmerge',
|
'block_bio_frontmerge',
|
||||||
'irq_softirq_entry',
|
'irq_softirq_entry',
|
||||||
'irq_softirq_raise'
|
'irq_softirq_raise',
|
||||||
'irq_softirq_exit',
|
'irq_softirq_exit',
|
||||||
'irq_handler_entry',
|
'irq_handler_entry',
|
||||||
'irq_handler_exit',
|
'irq_handler_exit',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue