Commit Graph

13153 Commits

Author SHA1 Message Date
martin f9bf21ec12 Switch back to FFSv2ea as default for new installations 2022-12-16 19:49:13 +00:00
ryo 63a85c5bd2 the "scale" option can be specified in the event name even in "tprof monitor" 2022-12-16 08:02:04 +00:00
ryo 923aefa047 - added 'c' command to tprof-top to show/hide event counter.
- column widths were not calculated correctly and sometimes displayed incorrectly.
- use putp() for terminfo str.
- fix build error with llvm.
2022-12-16 08:00:47 +00:00
martin bd887569a6 PR 57100: in manual mode, we can not ignore existing partitions
completley, as that causes inconsistent internal state.
2022-12-15 20:34:46 +00:00
martin f36c93121c PR 57100: check if we can newfs the proper fstype when adding a new
partition and accepting the default FS type.
2022-12-15 20:21:16 +00:00
martin ec5e52a94f Add an (expert) option to manually edit partitions, inspired by PR 57100. 2022-12-15 15:32:04 +00:00
martin c5acd70fc9 PR 57100: when adding a new partition, update current flags after
the backend has added the partion, so the re-sorting later can
match the new data properly.
2022-12-15 15:29:51 +00:00
martin 6dd7d38aed Temporarily back out rev 1.66 and switch the default FFS type back to
FFSv2 (w/o ea) for the upcoming netbsd-10 branch.
2022-12-15 15:11:44 +00:00
martin c4c8db1541 PR 57100: fix install flag handling for newly added GPT partitions,
fix multiple install flags when updating existing partitions.
2022-12-15 14:54:27 +00:00
jakllsch aa41167b90 If we can't read a pin while listing pins, simply continue on to next
pin rather than abort.
2022-12-13 21:47:36 +00:00
martin 53a2fe55e3 When generating a script for disklabel(8) do not use the "pretty printed"
file system type names, but the raw ones that disklabel(8) actually
knows about.
2022-12-11 19:32:57 +00:00
reinoud bbe55e4f80 Update list with file systems who do have fsck adding udf since there is now a
fsck_udf.
2022-12-10 20:58:37 +00:00
martin dacc867e53 Always map FS_BSDFFS to one of "FFS", "FFSv2" or "FFSv2ea" - previously
the disklabel name "4.2BSD" could show up initially but we could never
go back to it via the menu used to change the file system type.
This was confusing.
2022-12-10 16:52:02 +00:00
martin da75446885 Comment and code style (cosmetic) changes, no functional change 2022-12-10 16:13:19 +00:00
jakllsch 4bcdac4c45 VAX bootxx has had ffsv2 support since May 2018, allow its use as boot
filesystem in sysinst.

Sucessfully tested in simh-microvax3900 booting from FFSv2ea.
2022-12-10 16:03:15 +00:00
martin 99162e5773 Add set_default_sizemult() calls to some architectures obviously
lacking it.
2022-12-09 17:02:13 +00:00
martin fd17621afc A little less (confusing) magic: adjust the size of / when adding /usr
only if / has not beenn manually resized.
2022-12-09 16:54:31 +00:00
ryo 372d4eb272 if column width changes, the screen must be updated. 2022-12-09 02:19:07 +00:00
ryo 37e8e83852 supported AMD family added 2022-12-09 01:59:51 +00:00
ryo 2495b25d45 mainly fixes around display.
- use terminfo
- dynamically adjust column widths
- mode can be changed while running
2022-12-09 01:56:40 +00:00
ryo 38fd9876a2 add accumulative mode. "tprof top -a" 2022-12-09 01:55:46 +00:00
msaitoh db24b2c2b2 Add AMD family 19h (zen3 and zen4) support to tprof. 2022-12-08 05:29:27 +00:00
msaitoh f1f580f5a3 Use lowercase consistently for hexadecimal numbers. No functional change. 2022-12-08 02:12:18 +00:00
msaitoh f5823b203c KNF. No functional change. 2022-12-07 08:11:49 +00:00
ryo f8c9791718 fix build error with llvm 2022-12-05 05:02:45 +00:00
ryo e43c6d637e fix build error of printf format 2022-12-01 03:32:24 +00:00
ryo e93233db9a add "top" subcommand to tprof(8) 2022-12-01 00:43:27 +00:00
ryo 14ff263e51 split ksyms stuff into ksyms.[ch] 2022-12-01 00:41:10 +00:00
ryo 07a5918990 Improve tprof(8)
- Added "tprof count" subcommand to perform counts only.
- Event options (u,k) are now optional. The default value is both userland and kernel. (:uk)
- Event counters can be displayed with SIGINFO during `tprof monitor' or `tprof count'.
2022-12-01 00:40:05 +00:00
ryo caba1a6f47 Improve tprof(4)
- Multiple events can now be handled simultaneously.
- Counters should be configured with TPROF_IOC_CONFIGURE_EVENT in advance,
  instead of being configured at TPROF_IOC_START.
- The configured counters can be started and stopped repeatedly by
  PROF_IOC_START/TPROF_IOC_STOP.
- The value of the performance counter can be obtained at any timing as a 64bit
  value with TPROF_IOC_GETCOUNTS.
- Backend common parts are handled in tprof.c as much as possible, and functions
  on the tprof_backend side have been reimplemented to be more primitive.
- The reset value of counter overflows for profiling can now be adjusted.
  It is calculated by default from the CPU clock (speed of cycle counter) and
  TPROF_HZ, but for some events the value may be too large to be sufficient for
  profiling. The event counter can be specified as a ratio to the default or as
  an absolute value when configuring the event counter.
- Due to overall changes, API and ABI have been changed. TPROF_VERSION and
  TPROF_BACKEND_VERSION were updated.
2022-12-01 00:32:52 +00:00
martin cda02d64c0 Fix primary boot selection for FFSv2ea filesystems 2022-11-30 19:44:06 +00:00
martin 1903fd9f69 Switch the default FFS type from FFSv2 to FFSv2ea - we want extended
attribute support to be exercised and tested.

If you want to share a new installed disk with older NetBSD
installations or (read only) with other OSes you need to explicitly set
the FS type to FFSv2 now.
2022-11-30 15:57:54 +00:00
martin c6fbd2016e Add support for FFSv2ea in the partition type menus (internally setting
fs version to 3 for this, where 2 is FFSv2 and 1 is FFSv1)
2022-11-30 15:53:35 +00:00
brad 068b504f95 A driver for the Bosch BMP280 / BME280 temperature, humidity and
atmospheric pressure sensor.  This is an inexpensive to moderately
expensive chip available from a large number of places.  The driver
supports all aspects of the two chips, except for the repeating read
mode which would allow for sub-second queries, such as fall detection
or perhaps even as an altimeter.  This driver also only supports the
I2C interface and not the SPI interface.

The BME280, the one with humidity, is not fully tested at this point,
awaiting upon a breakout board and may not show proper humidity.
2022-11-21 21:24:00 +00:00
msaitoh ce50970520 s/features 2/features2/ 2022-11-17 15:21:31 +00:00
chs 87ba0e2a31 Restore backward compatibility of UFS2 with previous NetBSD releases by
disabling support in UFS2 for extended attributes (including ACLs).
Add a new variant of UFS2 called "UFS2ea" that does support extended attributes.
Add new	fsck_ffs operations "-c	ea" and	"-c no-ea" to convert file systems
from UFS2 to UFS2ea and	vice-versa (both of which delete all existing extended
attributes in the process).
2022-11-17 06:40:38 +00:00
msaitoh 733f1aef14 s/Instruction-Based Sampling/IBS/ 2022-11-16 15:02:00 +00:00
msaitoh 0eb57810eb Add CPUID Fn8000_0022 AMD Extended Performance Monitoring and Debug. 2022-11-16 14:55:50 +00:00
msaitoh 8c5c0f4087 Add CPUID Fn8000_0021 AMD Extended Features Identification 2. 2022-11-16 14:01:41 +00:00
msaitoh f4bc0dd676 Print AMD RAS features and Instruction-Based Sampling features. 2022-11-16 13:15:26 +00:00
uwe b983a092c6 syslogd: make -d accept an optional argument
Make it possible to specify the debug message categories with an
optional numeric argument.  You'll have to read the fine source to
find out what they are.  The number can be specified as the usual
decimal, hex (0x), or octal (0) literal with an optional ~negation.

Since syslogd uses getopt(3), not getopt_long(3), do a bit of
gymnastics so that both -d42 and -d 42 are accepted (I'm not inventing
long names for all the existing options just to support an optional
argument to -d).

-d without an argument still uses the old D_DEFAULT selection just in
case someone really relies on that.  You can disable all debug
messages with -d0 but still get syslogd not daemonized.
2022-11-08 01:43:09 +00:00
uwe b1c7adf12f tls.c: wrap debug-only data in #ifndef NDEBUG 2022-11-08 01:05:10 +00:00
uwe 4497207b84 sign.c: mark a variable used only in asserts as __diagused 2022-11-08 01:03:27 +00:00
andvar a4d52a8baf s/instalboot/installboot/ 2022-11-01 19:51:46 +00:00
gutteridge 954d646f97 makemandb.c: fix grammar in a comment 2022-10-30 01:49:30 +00:00
christos 53ca192d6b need gettext now 2022-10-29 13:53:19 +00:00
andvar 49811c99f0 fix various typos in comments and makefs README file. 2022-10-26 21:56:19 +00:00
rillig 77ed1cfd24 timed: fix typos in comments 2022-10-16 16:58:54 +00:00
rillig ec912a23a0 timed: fix typos in comments, remove trailing whitespace 2022-10-16 16:44:15 +00:00
rillig 3fa7630905 timed: remove unhandled getopt option -P
No functional change, due to 'opterr = 0'.
2022-10-16 16:37:16 +00:00