Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Dec 2024 00:56:28 GMT
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 7589f9bb7555 - stable/14 - hwpmc: Restore line lost in previous commit
Message-ID:  <202412010056.4B10uSJH046796@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by mav:

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

commit 7589f9bb7555c0f84eed9df6f1964082e6ff2698
Author:     Alexander Motin <mav@FreeBSD.org>
AuthorDate: 2024-11-28 16:53:24 +0000
Commit:     Alexander Motin <mav@FreeBSD.org>
CommitDate: 2024-12-01 00:56:10 +0000

    hwpmc: Restore line lost in previous commit
    
    MFC after:      3 days
    
    (cherry picked from commit de852d78ff58643d91bb672571757ef73ca74c39)
---
 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 8b6c2a1feb5b..f63b0e216fae 100644
--- a/sys/dev/hwpmc/hwpmc_logging.c
+++ b/sys/dev/hwpmc/hwpmc_logging.c
@@ -140,6 +140,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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202412010056.4B10uSJH046796>