25 lines
960 B
Diff
25 lines
960 B
Diff
From 3f93ac98b09a3bdb0dc557f9b93a008d809cd5c3 Mon Sep 17 00:00:00 2001
|
|
From: yinbin <yinbin8@huawei.com>
|
|
Date: Sun, 10 Dec 2023 14:55:16 +0800
|
|
Subject: [PATCH] dfx: fix kernel_events stat
|
|
|
|
---
|
|
src/lstack/core/lstack_stack_stat.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/src/lstack/core/lstack_stack_stat.c b/src/lstack/core/lstack_stack_stat.c
|
|
index 2d85efa..e4ccc41 100644
|
|
--- a/src/lstack/core/lstack_stack_stat.c
|
|
+++ b/src/lstack/core/lstack_stack_stat.c
|
|
@@ -136,6 +136,7 @@ static void get_wakeup_stat(struct protocol_stack_group *stack_group, struct pro
|
|
struct wakeup_poll *wakeup = container_of(node, struct wakeup_poll, poll_list);
|
|
|
|
if (wakeup->bind_stack == stack) {
|
|
+ stat->kernel_events += wakeup->stat.kernel_events;
|
|
stat->app_events += wakeup->stat.app_events;
|
|
stat->read_null += wakeup->stat.read_null;
|
|
stat->app_write_cnt += wakeup->stat.app_write_cnt;
|
|
--
|
|
2.27.0
|
|
|