summaryrefslogtreecommitdiffstats
path: root/scripts/convert-debug-for-diff.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-01 18:15:00 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-01 18:15:00 +0000
commita2a2e32c02643a0cec111511220227703fda1cd5 (patch)
tree69cc2b631234c2a8e026b9cd4d72676c61c594df /scripts/convert-debug-for-diff.sh
parentReleasing progress-linux version 1:10.11.8-1~progress7.99u1. (diff)
downloadmariadb-a2a2e32c02643a0cec111511220227703fda1cd5.tar.xz
mariadb-a2a2e32c02643a0cec111511220227703fda1cd5.zip
Merging upstream version 1:11.4.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'scripts/convert-debug-for-diff.sh')
-rwxr-xr-xscripts/convert-debug-for-diff.sh26
1 files changed, 23 insertions, 3 deletions
diff --git a/scripts/convert-debug-for-diff.sh b/scripts/convert-debug-for-diff.sh
index 5b3ce05b..3a22c745 100755
--- a/scripts/convert-debug-for-diff.sh
+++ b/scripts/convert-debug-for-diff.sh
@@ -18,8 +18,28 @@
while (<>)
{
- s/^T@[0-9]+\s*://g;
- s/0x[0-9a-f]+(\s|\n|\))/#$1/g;
- s/size: [0-9]+/size: #/g;
+ s/^T@[0-9]+ *://g;
+ s/0x[0-9a-f]+(\s|\n|\)|=|,|;)/#$1/g;
+ s/bitmap: [0-9a-fA-F]+$/bitmap: #/g;
+ s/size: [0-9-]+/size: #/g;
+ s/memory_used: [0-9]+/memory_used: #/g;
+ s/memory_used: -[0-9]+/memory_used: #/g;
+ s/Total alloc: [0-9]+/Total alloc: #/g;
+ s/(proc_info: )(.*:)[\d]+ /$1 /;
+ s/(select_cond.*) at line.*/$1/;
+ s/\(id: \d+ -> \d+\)/id: #->#/g;
+ s/(exit: found key at )\d+/$1#/g;
+ s/enter_stage: (.* at).*/enter_stage $1 ../g;
+ s/crc: [0-9]+/crc: #/g;
+ s/ref_count: [0-9]+/ref_count: #/g;
+ s/block: # \(\d+\)/block: # (#)/g;
+ s/delete_mutex: # mutex: # \(id: \d+ \<\- \d+\)/delete_mutex: # mutex: # (id: # <- #)/g;
+ s/ShortTrID: [0-9]+/ShortTrID: #/g;
+ s/timestamp:[0-9]+/timestamp:#/g;
+ s/#sql_.*_(\d+)/#sql_xxx_$1/g;
+ s/fd: [0-9]+/fd: #/g;
+ s/query_id: (\d+)/query_id: #/g;
+ s|: .*/mysql-test/var/tmp/mysqld\.\d|: var/tmp/mysqld|g;
+ s|: .*\\mysql-test\\var\\tmp\\mysqld\.\d|: var/tmp/mysqld|g;
print $_;
}