!11 Handle spaces in file paths.

From: @maskinghk 
Reviewed-by: @chenwei_kernel 
Signed-off-by: @chenwei_kernel
This commit is contained in:
openeuler-ci-bot 2025-04-21 06:42:00 +00:00 committed by Gitee
commit fcd411833e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 27 additions and 1 deletions

View File

@ -0,0 +1,22 @@
From f80abee8ef1e9787565b7ed9906c142cc3cff4ce Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marcin=20=C5=9Alusarz?= <marcin.slusarz@gmail.com>
Date: Fri, 3 Nov 2017 23:23:43 +0100
Subject: [PATCH] Handle spaces in file paths.
---
stackcollapse-perf.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stackcollapse-perf.pl b/stackcollapse-perf.pl
index e91f7deb..468c67ab 100755
--- a/stackcollapse-perf.pl
+++ b/stackcollapse-perf.pl
@@ -250,7 +250,7 @@ sub inline {
#
# stack line
#
- } elsif (/^\s*(\w+)\s*(.+) \((\S*)\)/) {
+ } elsif (/^\s*(\w+)\s*(.+) \((.*)\)/) {
# ignore filtered samples
next if not $pname;

View File

@ -7,12 +7,13 @@
Name: flamegraph
Version: 1.0
Summary: Stack trace visualizer
Release: 2
Release: 3
License: CDDL-1.0
URL: http://www.brendangregg.com/flamegraphs.html
Source0: https://github.com/brendangregg/FlameGraph/FlameGraph-%{commit}.tar.gz
Patch1: 0001-minwidth-now-accepts-a-percentage-of-time-with-%.patch
Patch2: 0002-Handle-spaces-in-file-paths.patch
BuildArch: noarch
BuildRequires: help2man
@ -154,6 +155,9 @@ cp -p *.1 %{buildroot}%{_mandir}/man1
%{_mandir}/man1/stackcollapse-xdebug.php.1*
%changelog
* Mon Apr 21 2025 maxin <maxin@xfusion.com> - 1.0-3
- Handle spaces in file paths.
* Fri Apr 18 2025 maxin <maxin@xfusion.com> - 1.0-2
- minwidth now accepts a percentage of time with %