From 40ebb9d09a63adbc3c45a45eca7c8fbe9e765140 Mon Sep 17 00:00:00 2001 From: Christophe Bedard Date: Sat, 16 Nov 2019 15:18:00 -0800 Subject: [PATCH] Add note about procname getting truncated in get_events_with_procname() --- tracetools_test/tracetools_test/case.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tracetools_test/tracetools_test/case.py b/tracetools_test/tracetools_test/case.py index f783c4e..9ea38f6 100644 --- a/tracetools_test/tracetools_test/case.py +++ b/tracetools_test/tracetools_test/case.py @@ -309,6 +309,9 @@ class TraceTestCase(unittest.TestCase): """ Get all events with the given procname. + Note: the given procname value will be truncated to the same max length as the procname + field. + :param procname: the procname :param events: the events to check (or `None` to check all events) :return: the events with the given procname