numatop/0002-Update-the-error-message.patch
Pingfan Liu 6a533d52ba add x86 zen support
Resolves: bz2088798
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2088798

Signed-off-by: Pingfan Liu <piliu@redhat.com>
2023-09-25 21:02:31 -04:00

31 lines
1.1 KiB
Diff

From b9157a8e3ba3a2a0af3d8f755a32a3b57cad04c9 Mon Sep 17 00:00:00 2001
From: Zhengjun Xing <zhengjun.xing@linux.intel.com>
Date: Mon, 31 Oct 2022 15:15:08 +0800
Subject: [PATCH 02/15] Update the error message
Update error message for cases that needs to increase ulimit.
For example, SPR needs to set the max open files to be more
than 1024, while in the most system, the default is 1024.
Signed-off-by: Zhengjun Xing <zhengjun.xing@linux.intel.com>
---
common/os/os_perf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/os/os_perf.c b/common/os/os_perf.c
index 44263e8..f2f1104 100644
--- a/common/os/os_perf.c
+++ b/common/os/os_perf.c
@@ -650,7 +650,7 @@ os_profiling_start(perf_ctl_t *ctl, perf_task_t *task)
proc_ll_clear(NULL);
if (profiling_start(ctl, (task_profiling_t *)(task)) != 0) {
- exit_msg_put("Fail to setup perf (probably permission denied)!\n");
+ exit_msg_put("Fail to setup perf (probably permission denied or need to increase the ulimit)!\n");
debug_print(NULL, 2, "os_profiling_start failed\n");
perf_status_set(PERF_STATUS_PROFILING_FAILED);
return (-1);
--
2.31.1