git: 7589f9bb7555 - stable/14 - hwpmc: Restore line lost in previous commit
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 01 Dec 2024 00:56:28 UTC
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)