projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tests: lttngctl.py: allow the creation of per-pid buffers
[lttng-tools.git]
/
tests
/
utils
/
lttngtest
/
lttngctl.py
diff --git
a/tests/utils/lttngtest/lttngctl.py
b/tests/utils/lttngtest/lttngctl.py
index 9b9658ec626086ef280d8acc9ff19c26894f60d0..c2afa885f56f14448ea9c5c30bd0688afcfd9a25 100644
(file)
--- a/
tests/utils/lttngtest/lttngctl.py
+++ b/
tests/utils/lttngtest/lttngctl.py
@@
-89,6
+89,17
@@
class TracingDomain(enum.Enum):
return "<%s.%s>" % (self.__class__.__name__, self.name)
return "<%s.%s>" % (self.__class__.__name__, self.name)
+@enum.unique
+class BufferSharingPolicy(enum.Enum):
+ """Buffer sharing policy."""
+
+ PerUID = "Per-UID buffering"
+ PerPID = "Per-PID buffering"
+
+ def __repr__(self):
+ return "<%s.%s>" % (self.__class__.__name__, self.name)
+
+
class EventRule(abc.ABC):
"""Event rule base class, see LTTNG-EVENT-RULE(7)."""
class EventRule(abc.ABC):
"""Event rule base class, see LTTNG-EVENT-RULE(7)."""
@@
-351,8
+362,13
@@
class Session(abc.ABC):
pass
@abc.abstractmethod
pass
@abc.abstractmethod
- def add_channel(self, domain, channel_name=None):
- # type: (TracingDomain, Optional[str]) -> Channel
+ def add_channel(
+ self,
+ domain,
+ channel_name=None,
+ buffer_sharing_policy=BufferSharingPolicy.PerUID,
+ ):
+ # type: (TracingDomain, Optional[str], BufferSharingPolicy) -> Channel
"""Add a channel with default attributes to the session."""
pass
"""Add a channel with default attributes to the session."""
pass
This page took
0.022795 seconds
and
4
git commands to generate.