| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
Reviewed by: mhorne
Sponsored by: Klara, Inc.
Obtained from: Intel perfmon (JSON event definitions)
Differential Revision: https://reviews.freebsd.org/D55081
MFC after: 2 days
|
| |
|
|
|
|
|
| |
Sponsored by: Netflix
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1954
|
| |
|
|
|
|
|
|
|
|
| |
This commit adds alderlaken CPU model to hwpmc/libpmc. JSON event
definitions are imported from Intel perfmon version 1.16.
Reviewed by: mhorne
MFC after: 1 week
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D49229
|
| |
|
|
|
|
|
|
|
|
| |
This commit adds emerald rapids CPU model to hwpmc/libpmc. JSON event
definitions are imported from Intel perfmon version 1.06.
Reviewed by: mhorne
MFC after: 1 week
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D49228
|
| |
|
|
|
|
|
|
|
|
|
|
| |
According to [1], the CPU models 6-{b7,ba,bf} are also alderlake-family
models. This patch adds them to the mapfile.csv.
[1] https://github.com/torvalds/linux/blob/master/tools/perf/pmu-events/arch/x86/mapfile.csv#L2
Reviewed by: mhorne
MFC after: 3 days
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D49126
|
| |
|
|
|
|
|
| |
This is a residual of the $FreeBSD$ removal.
MFC After: 3 days (though I'll just run the command on the branches)
Sponsored by: Netflix
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
fts has different types for its compare rotuine. Other systems, not
4.4BSD based, have a non-const version. Before we tested against
__GLIBC__, but now we test against __linux__ because that's Linux's API
and musl doesn't define __GLIBC__.
In addition, link against libftl on this platform since musl doesn't
include ftl routines in libc, but rather in libftl.
Co-authored-by: Val Packett <val@packett.cool>
Sponsored by: Netflix
Pull Request: https://github.com/freebsd/freebsd-src/pull/1066
Reviewed by: val_packett.cool
Differential Revision: https://reviews.freebsd.org/D45349
|
| |
|
|
| |
MFC after: 1 week
|
| |
|
|
|
|
|
|
|
| |
macOS, like Linux, does not include an outer const qualifier for its
fts_open callback arguments, so -Wincompatible-function-pointer-types
also picks this up and breaks the build now Clang 16 makes it an error
by default. Extend the existing Linux support to fix this.
MFC after: 1 week
|
| |
|
|
|
|
|
|
|
| |
The glibc fts_open() callback type does not have the second const
qualifier and it appears that Clang 16 errors by default for mismatched
function pointer types. Add an ifdef to handle this case.
Reviewed By: imp, emaste
Differential Revision: https://reviews.freebsd.org/D43000
|
| |
|
|
|
| |
Some leaf directories were missing Makefile.depend files or needed
architecture-specific Makefile.depend.* files.
|
| |
|
|
| |
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
|
| |
|
|
| |
Remove /^/[*/]\s*\$FreeBSD\$.*\n/
|
| |
|
|
| |
Remove /^\s*\*+\s*\$FreeBSD\$.*$\n/
|
| |
|
|
| |
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
|
| |
|
|
|
|
|
| |
- s/occured/occurred/
- s/the the/the/
MFC after: 3 days
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Thanks to the recently updated import of the jevents utility by mav@, we
can now compile the latest version of these event definitions. This
should support a wider set of common ARMv8 processors, for example, the
Cortex-A72 in the Raspberry Pi 4.
This brings this folder in sync with Linux commit 62e6eb8d5454.
Reviewed by: emaste
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D35549
|
| |
|
|
|
|
| |
- s/transistioned/transitioned/
MFC after: 3 days
|
| |
|
|
|
|
|
| |
Intel json's now have pretty reasonable fixed counters representation
via event=0 and umask. Hardcoded values create more confusion than fix.
MFC after: 1 month
|
| |
|
|
|
|
|
| |
commit f4df0dbbe62ee8e4405a57b27ccd54393971c773
Date: Wed May 25 22:04:10 2022 +0800
MFC after: 1 month
|
| |
|
|
|
|
|
| |
This file is shared with Linux. Having local style patches does not
help with updating it.
This reverts commit 3ea691c2612952dc5e6963649ad64312bd6dff4f.
|
| |
|
|
| |
MFC after: 1 month
|
| |
|
|
|
|
| |
- s/from from/from/
MFC after: 3 days
|
| |
|
|
| |
MFC after: 1 month
|
| |
|
|
|
|
| |
Reviewed by: mav, mhorne
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D30965
|
| |
|
|
|
|
|
|
|
|
| |
It has never been a part of upstream's struct pmu_event. The jevents
utility will not fill this field, so remove it.
Reviewed by: gnn
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D30530
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Additional Coverity detected memory leak fix.
Submitted by: bret_ketchum@dell.com
Reported by: Coverity
Reviewed by: cem, emaste
MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D26462
Notes:
svn path=/head/; revision=365845
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Coverity detected memory leak fix.
Submitted by: bret_ketchum@dell.com
Reported by: Coverity
Reviewed by: cem
MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D26230
Notes:
svn path=/head/; revision=364996
|
| |
|
|
|
|
|
| |
MFC after: 2 weeks
Notes:
svn path=/head/; revision=363157
|
| |
|
|
|
|
|
| |
MFC after: 1 week
Notes:
svn path=/head/; revision=363144
|
| |
|
|
|
|
|
|
|
| |
According to the 325462-071US document, they should be the same.
MFC after: 1 week
Notes:
svn path=/head/; revision=360269
|
| |
|
|
|
|
|
| |
MFC after: 1 week
Notes:
svn path=/head/; revision=359622
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
To make the PMC tool pmcstat working properly on Hygon platform, add
support for Hygon Dhyana family 18h by using the PMC initialization
code path of AMD family 17h.
Submitted by: Pu Wen <puwen@hygon.cn>
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D23562
Notes:
svn path=/head/; revision=357670
|
| |
|
|
|
|
|
|
| |
Reported by: Coverity
CID: 1391362
Notes:
svn path=/head/; revision=357243
|
| |
|
|
|
|
|
|
| |
Sort headers, move includes up to the top of the file, function return types on
their own line; no functional change.
Notes:
svn path=/head/; revision=357241
|
| |
|
|
|
|
|
|
|
|
|
| |
The jevents tool includes a copy of the jsmn json parser which is MIT
licensed. Upstream the MIT license appears in the jsmn.c source and a
standalone LICENSE file, but the latter is not included in the copy
contained in libpmc and the jsmn.h header carried no license information.
Add an SPDX tag to clarify the situation.
Notes:
svn path=/head/; revision=355671
|
| |
|
|
| |
Notes:
svn path=/head/; revision=355668
|
| |
|
|
| |
Notes:
svn path=/head/; revision=355667
|
| |
|
|
| |
Notes:
svn path=/head/; revision=355666
|
| |
|
|
|
|
|
|
|
|
|
| |
Two counters included a prefix 'Counter:###\tName:XXX' in their
descriptions that appears to be a leftover from some conversion
process. Remove them.
Found because a json validator tripped over the tab in the description.
Notes:
svn path=/head/; revision=355654
|
| |
|
|
|
|
|
|
|
|
|
|
| |
jevents includes a very permissive json parser that accepts invalid
json, of which there are many examples in libpmc (typically extra or
missing commas). Convert the arm64 files to proper json so other tools
can parse them.
Sponsored by: The FreeBSD Foundation
Notes:
svn path=/head/; revision=355630
|
| |
|
|
|
|
|
|
|
|
| |
PR: 241258
Reported by: sigsys @ gmail.com
Obtained from: github.com/andikleen/pmu-tools commit bb3c77ed61
MFC after: 3 days
Notes:
svn path=/head/; revision=354342
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Use `MIN` instead of similar hand rolled macro.
* Sort headers.
* Use `errno.h` instead of `sys/errno.h`.
* Wrap the argument to sizeof in parentheses for clarity.
* Remove `__BSD_VISIBLE` and `_XOPEN_SOURCE` #defines to mute warnings about
incompatible snprintf definitions.
This fixes a number of warnings I've been seeing lately in my builds.
Sort makefile variables per style.Makefile(9) (`CFLAGS`/`CWARNFLAG.gcc`) and
bump `WARNS` to 3.
MFC after: 2 weeks
Reviewed by: jtl
Approved by: jtl (mentor)
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D19851
Notes:
svn path=/head/; revision=346196
|
| |
|
|
|
|
|
| |
Reported by: emaste@
Notes:
svn path=/head/; revision=343758
|
| |
|
|
|
|
|
|
|
| |
Submitted by: Somalapuram Amaranath
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D17401
Notes:
svn path=/head/; revision=340108
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If RLIM_INFINITY == -1ULL (such as on macOS) the min() call will result
in a value of less than 1 being returned. This causes nftw() to fail
with EINVAL.
While touching this file also fix includes to work on Linux/macOS and don't
declare snprintf since it may have different attributes in the system
headers there.
Reviewed By: mmacy
Approved By: brooks (mentor)
Differential Revision: https://reviews.freebsd.org/D17682
Notes:
svn path=/head/; revision=339880
|
| |
|
|
|
|
|
| |
NB: lacks default sample rate for most counters
Notes:
svn path=/head/; revision=337735
|
| |
|
|
| |
Notes:
svn path=/head/; revision=337730
|
| |
|
|
| |
Notes:
svn path=/head/; revision=337729
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
vendor provided pmu-events tables and sundry cleanups.
The vendor pmu-events tables provide counter descriptions, default
sample rates, event, umask, and flag values for all the counter
configuration permutations. Using this gives us:
- much simpler kernel code for the MD component
- helpful long and short event descriptions
- simpler user code
- sample rates that won't overload the system
Update man page with newer sample types and remove unused sample type.
Notes:
svn path=/head/; revision=334244
|