git: de852d78ff58 - main - hwpmc: Restore line lost in previous commit

From: Alexander Motin <mav_at_FreeBSD.org>
Date: Thu, 28 Nov 2024 16:55:21 UTC
The branch main has been updated by mav:

URL: https://cgit.FreeBSD.org/src/commit/?id=de852d78ff58643d91bb672571757ef73ca74c39

commit de852d78ff58643d91bb672571757ef73ca74c39
Author:     Alexander Motin <mav@FreeBSD.org>
AuthorDate: 2024-11-28 16:53:24 +0000
Commit:     Alexander Motin <mav@FreeBSD.org>
CommitDate: 2024-11-28 16:53:24 +0000

    hwpmc: Restore line lost in previous commit
    
    MFC after:      3 days
---
 sys/dev/hwpmc/hwpmc_logging.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/dev/hwpmc/hwpmc_logging.c b/sys/dev/hwpmc/hwpmc_logging.c
index b472bf856b92..8fd7ef06a977 100644
--- a/sys/dev/hwpmc/hwpmc_logging.c
+++ b/sys/dev/hwpmc/hwpmc_logging.c
@@ -139,6 +139,7 @@ static struct mtx pmc_kthread_mtx;	/* sleep lock */
 	ph = (struct pmclog_header *)_le;				\
 	ph->pl_header =_PMCLOG_TO_HEADER(TYPE,_len);			\
 	ph->pl_tsc = tsc;						\
+	_le += sizeof(*ph) / 4	/* skip over timestamp */
 
 #define	PMCLOG_RESERVE_SAFE(P, T, L, TSC)				\
 	_PMCLOG_RESERVE_SAFE(P, T, L, return, TSC)