!259 [sync] PR-256: add the suggestion of using the -u parameter when the connection to unix socket fails

From: @openeuler-sync-bot 
Reviewed-by: @wu-changsheng 
Signed-off-by: @wu-changsheng
This commit is contained in:
openeuler-ci-bot 2023-01-09 01:42:45 +00:00 committed by Gitee
commit 52207b3388
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 38 additions and 1 deletions

View File

@ -0,0 +1,33 @@
From 224d243532c2ebcfd6a03df6d4e90208c9d1b3de Mon Sep 17 00:00:00 2001
From: kircher <majun65@huawei.com>
Date: Thu, 5 Jan 2023 19:39:39 +0800
Subject: [PATCH] add the suggestion of using the -u parameter when the
connection to unix socket fails
---
src/ltran/ltran_dfx.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/ltran/ltran_dfx.c b/src/ltran/ltran_dfx.c
index 53d1b47..1c9d4fa 100644
--- a/src/ltran/ltran_dfx.c
+++ b/src/ltran/ltran_dfx.c
@@ -198,6 +198,7 @@ static int32_t dfx_connect_ltran(bool use_ltran, bool probe)
if (ret == -1) {
if (!probe) {
printf("connect ltran failed. errno: %d ret=%d\n", errno, ret);
+ printf("You may need to use the -u parameter to specify the UNIX_PREFIX that matches the configuration.\n");
}
close(fd);
return GAZELLE_ERR;
@@ -1220,6 +1221,7 @@ static int32_t check_cmd_support(struct gazelle_stat_msg_request *req_msg, int32
}
/* keep output consistency */
printf("connect ltran failed. errno: 111 ret=-1\n");
+ printf("You may need to use the -u parameter to specify the UNIX_PREFIX that matches the configuration.\n");
return -1;
}
}
--
2.33.0

View File

@ -2,7 +2,7 @@
Name: gazelle
Version: 1.0.1
Release: 43
Release: 44
Summary: gazelle is a high performance user-mode stack
License: MulanPSL-2.0
URL: https://gitee.com/openeuler/gazelle
@ -194,6 +194,7 @@ Patch9176: 0176-pbuf-align-cache-line.patch
Patch9177: 0177-support-set-main-thread-affinity.patch
Patch9178: 0178-reduce-epoll-wakeup.patch
Patch9179: 0179-revert-expand-recv-data-buff.patch
Patch9180: 0180-add-the-suggestion-of-using-the-u-parameter-when-the.patch
%description
%{name} is a high performance user-mode stack.
@ -234,6 +235,9 @@ install -Dpm 0640 %{_builddir}/%{name}-%{version}/src/ltran/ltran.conf %{b
%config(noreplace) %{conf_path}/ltran.conf
%changelog
* Fri Jan 6 2023 kircher <majun65@huawei.com> - 1.0.1-44
- add the suggestion of using the -u parameter when the connection to unix socket fails
* Fri Dec 30 2022 wuchangsheng <wuchangsheng2@huawei.com> - 1.0.1-43
- revert expand recv data buff