!11 Handle spaces in file paths.
From: @maskinghk Reviewed-by: @chenwei_kernel Signed-off-by: @chenwei_kernel
This commit is contained in:
commit
fcd411833e
22
0002-Handle-spaces-in-file-paths.patch
Normal file
22
0002-Handle-spaces-in-file-paths.patch
Normal 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;
|
||||||
|
|
||||||
@ -7,12 +7,13 @@
|
|||||||
Name: flamegraph
|
Name: flamegraph
|
||||||
Version: 1.0
|
Version: 1.0
|
||||||
Summary: Stack trace visualizer
|
Summary: Stack trace visualizer
|
||||||
Release: 2
|
Release: 3
|
||||||
License: CDDL-1.0
|
License: CDDL-1.0
|
||||||
URL: http://www.brendangregg.com/flamegraphs.html
|
URL: http://www.brendangregg.com/flamegraphs.html
|
||||||
Source0: https://github.com/brendangregg/FlameGraph/FlameGraph-%{commit}.tar.gz
|
Source0: https://github.com/brendangregg/FlameGraph/FlameGraph-%{commit}.tar.gz
|
||||||
|
|
||||||
Patch1: 0001-minwidth-now-accepts-a-percentage-of-time-with-%.patch
|
Patch1: 0001-minwidth-now-accepts-a-percentage-of-time-with-%.patch
|
||||||
|
Patch2: 0002-Handle-spaces-in-file-paths.patch
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: help2man
|
BuildRequires: help2man
|
||||||
@ -154,6 +155,9 @@ cp -p *.1 %{buildroot}%{_mandir}/man1
|
|||||||
%{_mandir}/man1/stackcollapse-xdebug.php.1*
|
%{_mandir}/man1/stackcollapse-xdebug.php.1*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Fri Apr 18 2025 maxin <maxin@xfusion.com> - 1.0-2
|
||||||
- minwidth now accepts a percentage of time with %
|
- minwidth now accepts a percentage of time with %
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user