diff options
author | Dennis Jeon <dennis.jeon@broadcom.corp-partner.google.com> | 2022-08-29 14:13:50 +0900 |
---|---|---|
committer | TreeHugger Robot <treehugger-gerrit@google.com> | 2022-10-06 06:06:18 +0000 |
commit | 6a7c552c33a9f437edc0bb2affc91161fd6f4dfc (patch) | |
tree | a2190ecaea7afd6679f32a98e0a02007e980b73c /dhd_debug.c | |
parent | 6a18a57b2c21e23d260a8b94b629dfc472854110 (diff) | |
download | bcm4389-6a7c552c33a9f437edc0bb2affc91161fd6f4dfc.tar.gz |
bcmdhd: Optimized by packing multiple log entries into an event
Currently, an event has only a log entry. it is not efficient.
As a simple idea, It can be optimized that multiple log entries can be packed into an event.
Bug: 233102491
Test: SVT test cycle
Signed-off-by: Dennis Jeon <dennis.jeon@broadcom.corp-partner.google.com>
Change-Id: I9db6d75aedfcf96bde74b2d077130cdd65747ec4
Signed-off-by: Dennis Jeon <dennis.jeon@broadcom.corp-partner.google.com>
Diffstat (limited to 'dhd_debug.c')
-rw-r--r-- | dhd_debug.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dhd_debug.c b/dhd_debug.c index 6efe810..64b002d 100644 --- a/dhd_debug.c +++ b/dhd_debug.c @@ -380,7 +380,8 @@ dhd_dbg_pull_from_pktlog(dhd_pub_t *dhdp, int ring_id, void *data, uint32 buf_le #endif /* DHD_PKT_LOGGING_DBGRING */ int -dhd_dbg_pull_from_ring(dhd_pub_t *dhdp, int ring_id, void *data, uint32 buf_len) +dhd_dbg_pull_from_ring(dhd_pub_t *dhdp, int ring_id, void *data, uint32 buf_len, + int *num_entries) { dhd_dbg_ring_t *ring; @@ -391,7 +392,7 @@ dhd_dbg_pull_from_ring(dhd_pub_t *dhdp, int ring_id, void *data, uint32 buf_len) return BCME_RANGE; } ring = &dhdp->dbg->dbg_rings[ring_id]; - return dhd_dbg_ring_pull(ring, data, buf_len, FALSE); + return dhd_dbg_ring_pull(ring, data, buf_len, FALSE, num_entries); } static int |