This commit is contained in:
Christophe Bedard 2019-06-23 14:43:03 +02:00
parent a84024a19c
commit 7fb7d9b842
2 changed files with 18 additions and 14 deletions

View file

@ -1,6 +1,7 @@
# LTTng tracing interface
import sys
# Temporary workaround
sys.path = ['/usr/local/lib/python3.6/site-packages'] + sys.path
from typing import List
@ -19,7 +20,7 @@ def lttng_setup(
full_path: str,
ros_events: List[str] = DEFAULT_EVENTS_ROS,
kernel_events: List[str] = DEFAULT_EVENTS_KERNEL,
context_names: List[str] = DEFAULT_CONTEXT
context_names: List[str] = DEFAULT_CONTEXT,
) -> None:
"""
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(
handle: lttng.Handle,
events_list: List[lttng.Event],
channel_name: str
channel_name: str,
) -> None:
"""
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
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.

View file

@ -6,7 +6,7 @@ DEFAULT_EVENTS_KERNEL = [
'block_rq_issue',
'block_bio_frontmerge',
'irq_softirq_entry',
'irq_softirq_raise'
'irq_softirq_raise',
'irq_softirq_exit',
'irq_handler_entry',
'irq_handler_exit',