gala-gopher/fix-bug.patch
Zhen Chen 4a36a5936f sync bugfix patches from openeuler/gala-gopher
- fix ksliprobe get invalid args occasionally at startup
- fix error print when starting gala-gopher
- add system_uuid field to distinguish client when post to pyroscope server
- repair stackprobe caused cpu rush
- add support to pyroscope
- bugfix: add check if thread is 0
- fix stackprobe memory allocation and deallocation errors
- normalize time format in flamegraph svg filename

(cherry picked from commit 6aef5cc8e4e2a34324c3f01663d2b61c0462f4ac)
2023-01-17 22:29:44 +08:00

39 lines
1.1 KiB
Diff

From a43af4c9df148d3a71666fdcfda3f2bb5a83fc99 Mon Sep 17 00:00:00 2001
From: wo_cow <niuqianqian@huawei.com>
Date: Mon, 9 Jan 2023 16:14:15 +0800
Subject: [PATCH] fix bug
---
src/common/common.h | 2 +-
src/common/util.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/common/common.h b/src/common/common.h
index 64c040a..72848f8 100644
--- a/src/common/common.h
+++ b/src/common/common.h
@@ -192,6 +192,6 @@ int exec_cmd(const char *cmd, char *buf, unsigned int buf_len);
char is_exist_mod(const char *mod);
int __snprintf(char **buf, const int bufLen, int *remainLen, const char *format, ...);
char is_digit_str(const char *s);
-int get_system_uuid(char *buffer, size_t size);
+int get_system_uuid(char *buffer, unsigned int size);
#endif
diff --git a/src/common/util.c b/src/common/util.c
index 945da65..b7a928f 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -196,7 +196,7 @@ char is_digit_str(const char *s)
return 1;
}
-int get_system_uuid(char *buffer, size_t size)
+int get_system_uuid(char *buffer, unsigned int size)
{
FILE *fp = NULL;
--
2.33.0