WIP: Events can be defined with no fields yielding no " { } " field text
[lttng-tools.git] / tests / utils / parse-callstack.py
index da0bab626e5d736b9a29c4a8c11c5fa28567e196..1bb876141cc40a900127b0c0a0e80eabf14cfe7f 100755 (executable)
@@ -1,19 +1,9 @@
-#! /usr/bin/python3
-
-# Copyright (C) - 2017 Francis Deslauriers <francis.deslauriers@efficios.com>
+#!/usr/bin/python3
 #
-# This library is free software; you can redistribute it and/or modify it
-# under the terms of the GNU Lesser General Public License as published by the
-# Free Software Foundation; version 2.1 of the License.
+# Copyright (C) 2017 Francis Deslauriers <francis.deslauriers@efficios.com>
 #
-# This library is distributed in the hope that it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
-# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
-# for more details.
+# SPDX-License-Identifier: LGPL-2.1-only
 #
-# You should have received a copy of the GNU Lesser General Public License
-# along with this library; if not, write to the Free Software Foundation,
-# Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
 
 import sys
 import bisect
@@ -99,8 +89,8 @@ def extract_kernel_func_names(raw_callstack):
     return recorded_callstack
 
 # Regex capturing the callstack_user and callstack_kernel context
-user_cs_rexp='.*callstack_user\ \=\ \[(.*)\]\ .*\}, \{.*\}'
-kernel_cs_rexp='.*callstack_kernel\ \=\ \[(.*)\]\ .*\}, \{.*\}'
+user_cs_rexp='.*callstack_user\ \=\ \[(.*)\]\ .*\}'
+kernel_cs_rexp='.*callstack_kernel\ \=\ \[(.*)\]\ .*\}'
 
 def main():
     """
This page took 0.025071 seconds and 5 git commands to generate.