From 98dc90b05da46fafbbc224f68d70cbd85f3b226f Mon Sep 17 00:00:00 2001 From: weli-l <1289113577@qq.com> Date: Mon, 25 Aug 2025 20:05:12 +0800 Subject: [PATCH 1/2] fix condition is always right Signed-off-by: weli-l <1289113577@qq.com> --- systrace/build.sh | 4 ++-- systrace/include/common/shared_constants.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/systrace/build.sh b/systrace/build.sh index 0de3a6a..2ad64d0 100644 --- a/systrace/build.sh +++ b/systrace/build.sh @@ -8,8 +8,8 @@ BUILD_DIR="build" cleanup() { mkdir -p "$BUILD_DIR" "$CONFIG_DIR" - sudo rm -rf "$BPF_MOUNT/sysTrace" - sudo mount -t bpf bpf "$BPF_MOUNT/" 2>/dev/null || true + rm -rf "$BPF_MOUNT/sysTrace" + mount -t bpf bpf "$BPF_MOUNT/" 2>/dev/null || true rm -f src/os/*.{o,skel.h} } diff --git a/systrace/include/common/shared_constants.c b/systrace/include/common/shared_constants.c index e230f3a..f5f0ddf 100644 --- a/systrace/include/common/shared_constants.c +++ b/systrace/include/common/shared_constants.c @@ -167,7 +167,7 @@ bool checkAndUpdateTimer(int level) { if (elapsed >= *interval) { *dump_flag = false; *timer_active = false; - if (!dumped) { + if (!*dumped) { *need_dump_once = true; } } else { -- Gitee From 8796f54fde32271f0d1ab46dc31faebabc235757 Mon Sep 17 00:00:00 2001 From: weli-l <1289113577@qq.com> Date: Tue, 26 Aug 2025 16:55:33 +0800 Subject: [PATCH 2/2] delete author info Signed-off-by: weli-l <1289113577@qq.com> --- systrace/convert/convert_json2csv.py | 2 +- systrace/convert/convert_mspti_timeline.py | 2 +- systrace_mcp/systrace_mcp/__init__.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/systrace/convert/convert_json2csv.py b/systrace/convert/convert_json2csv.py index 55b8ea2..9967727 100644 --- a/systrace/convert/convert_json2csv.py +++ b/systrace/convert/convert_json2csv.py @@ -3,7 +3,7 @@ Copyright (c) Huawei Technologies Co., Ltd. 2020-2028. All rights reserved. Description: FileName:convert_json2_csv.py -Author: h00568282/huangbin +Author: Create Date: 2025/3/28 16:17 Notes: diff --git a/systrace/convert/convert_mspti_timeline.py b/systrace/convert/convert_mspti_timeline.py index e93f178..5cd595b 100644 --- a/systrace/convert/convert_mspti_timeline.py +++ b/systrace/convert/convert_mspti_timeline.py @@ -3,7 +3,7 @@ Copyright (c) Huawei Technologies Co., Ltd. 2020-2028. All rights reserved. Description: FileName:slow_node_detection.py -Author: c00570162/congdechun +Author: Create Date: 2025/3/26 11:23 Notes: 0726:完善通信算子连线,1 flow s ts 要小于f ts diff --git a/systrace_mcp/systrace_mcp/__init__.py b/systrace_mcp/systrace_mcp/__init__.py index 9265555..9d18dd9 100644 --- a/systrace_mcp/systrace_mcp/__init__.py +++ b/systrace_mcp/systrace_mcp/__init__.py @@ -3,7 +3,7 @@ Copyright (c) Huawei Technologies Co., Ltd. 2020-2028. All rights reserved. Description: FileName:__init__.py.py -Author: h30077985/houxu +Author: Create Date: 2025/7/8 19:24 Notes: -- Gitee