Commit Graph

12035 Commits

Author SHA1 Message Date
martin 72cf5c53dc Cosmetics: consistently use MEG and GIG defines for size calculations 2018-11-27 17:13:41 +00:00
knakahara 4ed6c77e42 tprof: Add goldmont plus support. Tested by msaitoh@n.o, thanks. 2018-11-26 23:20:56 +00:00
ryo 8a4107013c Add ThunderX IDs 2018-11-26 18:08:41 +00:00
knakahara 4fd01caa16 tprof: Add goldmont support.
I tested on Atom C3558 (Denverton).
2018-11-26 07:45:47 +00:00
msaitoh 942ff4944d Print Intel CPUID Architectural Performance Monitoring leaf Fn0000000a. 2018-11-26 04:45:13 +00:00
msaitoh ee702c097f Decode Intel/AMD MONITOR/MWAIT leaf. 2018-11-22 06:15:06 +00:00
martin 87f081f95f A few hints that sets may come in .tar.xz format (instead of .tgz) 2018-11-21 20:18:11 +00:00
martin 444da8f01d Sprinkle a few references to .tar.xz files (as alternative to .tgz files) 2018-11-21 20:13:09 +00:00
msaitoh 7c1e0af10e Decode package, core and SMT id if CPUID 0x0b is available on Intel processor.
If the value is different from the kernel value, we should fix the kernel code.

TODO: Use 0x1f if it's available.
2018-11-21 12:19:51 +00:00
msaitoh b430389aea - AMD also reports CPUID 7's highest subleaf. Print it.
- Use macro.
2018-11-21 10:34:53 +00:00
msaitoh ee8540f68c - Use ci_feat_val[7] as CPUID 7 %edx to match x86/cpu.h
- AMD also has CPUID 6.
- Remove unused code for coretemp.
- Consistently use descs[] instead of data[].
2018-11-21 06:10:25 +00:00
martin 39e506156f Convert all static menu struct initializiations to C99 name initializer
format - prerequisite for an upcoming evil hack (tm).
No functional change intended.
2018-11-20 19:02:07 +00:00
maxv 71256c3b0d Note support for Intel Silvermont/Airmont. 2018-11-20 06:43:26 +00:00
mrg 0e9d255287 rewrite the CPU identification on arm64:
- publish per-cpu data
- publish a whole bunch of info in struct aarch64_sysctl_cpu_id
  instead of various individual nodes (there are 16 total.)
- add MIDR extractor bits
- define ARMv8.2-A id_aa64mmfr2_el1 and id_aa64zfr0_el1 regs,
  but avoid using them until we make sure they exist.  (these
  members are added to aarch64_sysctl_cpu_id to avoid future
  compat issues.)

the arm32 and aarch32 version of these need to be adjusted as
well (and aarch32 data published at all.)  still trying to
work out how to make the same userland binary running on a
real arm32 or an aarch32 system can work sanely here.

ok ryo@.
2018-11-20 01:59:51 +00:00
martin b978e7a9c1 Split positional argument string expansion from msg display, we can make
good use of it elsewhere too.
2018-11-19 17:17:43 +00:00
sevan 05de7c48c1 Adjust test, we only want to return the structure member if the result is not NULL.
Heads up by Sascha Wildner @ DragonFly BSD.
2018-11-18 23:03:36 +00:00
martin 379f075dc1 Yet another size estimate 2018-11-18 10:37:04 +00:00
martin de7834a35d More size estimate fixes 2018-11-18 10:34:45 +00:00
martin b70953c52d Add default for debug sets size 2018-11-17 19:22:48 +00:00
martin a67ab68028 Now that size estimates are not way off anymore, only double the size
for the minimal suggested partition.
2018-11-16 19:55:18 +00:00
martin 7a2eea57bf Sync install size estimates with current reality 2018-11-16 19:54:03 +00:00
ozaki-r 4dae353ba2 rtadvd: use %u to print unsigned variables 2018-11-16 08:57:10 +00:00
martin 352a555edc Make use of the new positional parameters to better describe the first
partitioning step. Remove size limits/hints encoded in the translations
and replace them by values from the code.
2018-11-15 10:34:21 +00:00
martin ac730b5183 Add a new helper function to show messages with positional parameters 2018-11-15 10:23:32 +00:00
knakahara a8700cbec5 tprof: Add silvermont, airmont support.
I tested on Atom C2758 (Rangeley).
2018-11-15 07:20:31 +00:00
wiz a1961053ec Sort sections. New sentence, new line. 2018-11-14 18:28:18 +00:00
martin c4cf3d8d86 Slightly enhance previous: create two utility functions checking for
partitionability and boot code requirements, use a generic match helper
function for both and fully check the device name.
2018-11-14 02:30:00 +00:00
bouyer a5c25858d1 Skip mbr for xbd and raid devices, as it was before Nov. 5 commits.
anita xen installs should work again.
2018-11-13 17:22:04 +00:00
christos 782f459947 FILES section from Dan Plassche 2018-11-12 00:50:54 +00:00
martin 57cf8237b6 Skip floopies when selecting an install target, but do not add them to
the CD list when selecting an installation source device.
2018-11-11 10:06:09 +00:00
martin 8b5066c45d Do not allow installation onto floppy disk - can be overriden by
architectures where it would make sense (none currently), and also
works around a bug in QEMU for sparc that kills our -current anita tests.
2018-11-11 09:17:10 +00:00
maya 0b54191a1c & promotes to int already, so clang warns about the hh modifier.
(and we use -Werror)

ok xtos
2018-11-11 00:24:01 +00:00
abs 5b096803d3 Install the sample slip.login to share/examples/slip/slip.login 2018-11-09 21:33:50 +00:00
martin 5864e121ba Fix test for active root partition when booting from a wedge 2018-11-09 15:20:36 +00:00
martin 1c2e5b02c0 Adapt other cd-device query functions to new world order, fix
default cd device (assume 'a' partition).
2018-11-08 20:29:37 +00:00
martin a48ed55e5c Untangle disk enumeration a bit more. 2018-11-08 11:56:56 +00:00
martin 4bb5c5376d Simplify CD device name matching by using fnmatch(3), suggested
by Christoph Badura.
2018-11-08 11:15:58 +00:00
martin e80b64debe Fix CD_NAMES against concrete instances comparision - if CD_NAMES
entries have a wildcard, strip device instance number off from both
comparands.
2018-11-07 21:59:30 +00:00
martin 3b44a3d7f6 Unify handling of CDROM device names.
Skip CDs when looking for install targets (we do not support installing
onto a blueray with UDF).

Fix search for the default CDROM device and the CD we booted from
for ports with nonstandard CDROM device names.
2018-11-07 21:20:23 +00:00
plunky 7c0fdce822 add rc.d/dhcpd6 2018-11-06 06:16:00 +00:00
martin 7a39103985 Get rid of hard coded disk names and use sysctl hw.disknames
instead.
2018-11-05 19:45:56 +00:00
martin b57ba1ec69 For "unknown" sets (should only happen for pkgsrc.tgz), always use
.tgz suffix.
2018-11-05 17:04:03 +00:00
martin f4ed83519c Revert previous - local merge mishap 2018-11-05 10:27:06 +00:00
wiz 4736bd2c39 Sort options. 2018-11-05 09:22:30 +00:00
martin 4a0babdb00 Make it compilable with gcc 2018-11-05 08:34:20 +00:00
msaitoh 755dd63262 Decode Boot Graghics Resource Table (BGRT). 2018-11-05 07:39:57 +00:00
roy 9adaa956c5 syslogd: allow the reporting of buffer overflows to be disabled.
This generally isn't a good thing, nothing should be discard silently.
However, for systems that don't want big syslogd buffers or are too slow
to log effectively this reporting can now be disabled.
2018-11-04 20:45:21 +00:00
roy 0402a70e1e syslogd: allow the receiving buffer size to be set.
This allows the admin to try and avoid buffer overflow when a log of
logging appears in bursts.
2018-11-04 20:23:08 +00:00
martin eb0dcb1bc7 Remove "usage" translations - they never could be displayed as we only select
the language later.
Extend usage display a bit and sync with reality.
2018-11-03 18:30:00 +00:00
martin 13376b1dc9 Make the debug version compilable with modern gcc.
Do debugging for system(3) calls only when DEBUG_SYSTEM is defined.
2018-11-02 18:07:33 +00:00
msaitoh 055f8b85fb Decode CSRT (Core System Resources Table). 2018-11-01 03:08:46 +00:00
kre d4305dc776 sysctl(KERN_BOPOTIME) started returning a struct timespec in 2009.
Update to match....    We're slow but we get there eventually!

NFC for any of these programs, struct timeval and struct timespec
are the same size, and only the tv_sec field of boottime is used,
and that's unchanged.
2018-10-30 21:15:09 +00:00
martin 290d09c518 Add support for MAKEDEV living in /etc instead of /dev, this is one of
the supported options when init(8) creates a union mounted tmpfs on /dev.
2018-10-26 18:06:34 +00:00
christos d5a790ba35 add __RCSID 2018-10-19 22:51:13 +00:00
msaitoh 43a714dc69 Add GTDT and PPTT. 2018-10-19 05:04:45 +00:00
msaitoh c26b2779fe Fix output of Cache type in PPTT. 2018-10-18 05:20:05 +00:00
msaitoh bf819d34f8 Don't print X_PM_TMR_BLK if the address value is 0. 2018-10-18 05:04:44 +00:00
msaitoh 27cdf6cf05 Don't print PM_TMR_BLK if the value is 0 (see also acpi_timer.c rev. 1.23). 2018-10-18 04:52:00 +00:00
msaitoh aba8816bd6 Decode Generic Timer Description Table(GTDT) and Processor Properties Topology
Table(PPTT). Cosmetic changes and fixes might be required. Testesd by jmcneill.
2018-10-18 04:29:44 +00:00
msaitoh b04bf7f2c3 Print SPCR's Interface Type and ARMH GIC Interrupt Type. 2018-10-18 04:25:34 +00:00
jmcneill 43db5d20d4 FACS is optional if the HW_REDUCED_ACPI flag is set in the FADT. 2018-10-16 21:44:37 +00:00
jmcneill d25cdfbd09 Add acpidump, amldb, and iasl to aarch64 build. 2018-10-14 13:36:32 +00:00
jmcneill 8ebf8cb05c getopt returns int, not char 2018-10-14 12:43:58 +00:00
wiz f244ebf64d Sort options. 2018-10-07 20:30:50 +00:00
mlelstv 803c93c66f Add flag to enforce file I/O even when bmap/strategy would be possible.
This makes it easier to compare both modes, it also allows coherent
operation between vnd device and image file.
2018-10-07 11:51:26 +00:00
martin 0ef20e9266 Support sets in .tar.xz format 2018-10-06 18:45:37 +00:00
msaitoh 8b136ef70d Remove extra newline in SPMI table. 2018-10-05 05:09:31 +00:00
msaitoh 5073389c63 - Decode DMAR's ANDD (ACPI Name Space).
- Add X2APIC_MODE flag of DMAR. Note that Intel's VT-d's document says the
  flag's name is DMA_CTRL_PLATFORM_OPT_IN but actbl1.h says it's
  DMAR_X2APIC_MODE.
2018-10-03 09:52:59 +00:00
msaitoh 3de33cabd4 Add ACPI LPIT (Low Power Idle Table) from FreeBSD r336185. 2018-10-03 09:46:11 +00:00
rmind 39013e66c1 NPF: Major rework -- migrate NPF to the libnv library.
- This conversion significantly simplifies the code and moves NPF to
  a binary serialisation format (replacing the XML-like format).
- Fix some memory/reference leaks and possibly use-after-free bugs.
- Bump NPF_VERSION as this change makes libnpf incompatible with the
  previous versions.  Also, different serialisation format means NPF
  connection/config saving and loading is not compatible with the
  previous versions either.

Thanks to christos@ for extra testing.
2018-09-29 14:41:35 +00:00
wiz 1e55f34803 New sentence, new line. Use An/Mt. 2018-09-25 09:53:40 +00:00
maxv 6049b090a1 Remove the userland part of ISDN. The kernel part is untouched for now.
ipppctl was actually an exact copy of pppoectl; there is no functional
change in pppoectl in this commit.
2018-09-23 07:24:19 +00:00
kre 40b03336a1 Switch from getopt to getopts - and as part of that, update the usage,
and the man page, to reflect modern usage rather than some ancient style
that getopt[s] does not support (options, and their args when they exist)
always come before non-option agrs.

While here, update uses of test(1) to avoid obsolescent forms (and
even when still defined, prefer sh structures over test when possible).
2018-09-23 02:15:25 +00:00
uwe 97e384e7bd According to the grammar and examples the static table is defined with
"file" keyword, not "static".
2018-09-21 10:59:11 +00:00
uwe 6da1ab24a9 Improve markup. 2018-09-21 09:42:18 +00:00
maxv 62994698cf Wrap long lines, so that nothing overflows. 2018-09-21 07:22:26 +00:00
rin c484ae3b93 Enable NOPARTMAN for install media. 2018-09-20 12:28:33 +00:00
rin d1110cca13 Add NOPARTMAN compile-time option, which drops extended partitioning
support provided by partman.c. It reduces, e.g., about 30KB for
crunched binary in atari install floppy.

OK christos
2018-09-20 12:27:42 +00:00
maxv 657923ce43 Switch back to tabs, it was nicer this way. 2018-09-19 15:36:12 +00:00
maxv 9d7954dab6 Remove daic(4), it has never been functional.
ok martin@
2018-09-19 13:58:26 +00:00
tsutsui 53233017b7 Make sure to install a bootloader even on upgrade installation.
Fixes another part of port-sgimips/53583.
Should be pulled up (with rev 1.5) to netbsd-7 and netbsd-8.
2018-09-17 15:19:29 +00:00
martin ad83f34c87 Now that the build cluster creates stable "latest" links, use them
as default for downloading sets.
2018-09-16 09:15:12 +00:00
jakllsch bb72cd05aa make kernel-groveling crash(8) work on aarch64 2018-09-15 19:47:48 +00:00
martin c42e76eb3d When not using the serial console while installing with sysinst,
switch all ports in /etc/ttys over to wsvt25.

For mixed setups that sometims do serial console and otherwise
frambuffer console, it would be better to leave console and constty as
vt100, but switch console to off and ttyE0 to on, but we do not want
to bother the user with tricky questions here and everyone switching
console types should have no problem changing this setup later,
or even deal with a serial console and TERM=wsvt25.
2018-09-15 18:04:21 +00:00
martin ea884bbd6a Fix merge mishap in rev 1.9/1.10 - remove accidently duplicated
code. No functional change.
2018-09-15 17:42:38 +00:00
martin 56c59c7a28 Try to properly guess a path on the ftp server for pkg binaries
and use that as default.

Assume for $N.99 (current) we can use $N.0. Otherwise strip all
RC*/STABLE* annotations and just use the plain numbers.
2018-09-12 13:44:05 +00:00
martin 9ce05eeee9 Split the host name used for ftp transfers from the one used for http
transfers. This is slightly inconsistent, as directories are still
shared - but this allows us to default to cdn/nycdn for http (which don't
support ftp).
2018-09-11 08:05:18 +00:00
martin df9944f85a Fix editor accident in previous 2018-09-08 20:01:19 +00:00
martin a6c219b7c4 PR port-sgimips/53583: fetch kernel name always before using it.
Make the struct utsname local to avoid future similar issues.
2018-09-08 18:10:35 +00:00
martin 3575766bab Fix previous in case when BUILDID is passed - the subdirectory has the
same name as the BUILDID (which already includes the trailing "Z", no need
to append it again)
2018-09-06 07:56:40 +00:00
maxv f922b0f6bd Remove the network ATM code. 2018-09-06 06:41:59 +00:00
martin 7141f3ff1f For local builds, at least use the right prefix on nyftp 2018-09-05 12:49:55 +00:00
martin b99992c095 Try to guess the proper directory on ftp or nyftp where the binary
sets for the current build will end up.
2018-09-05 12:01:52 +00:00
maxv bc58a324f2 Fix the "Interfaces" section, I understood wrong. Talk about inference,
because it was not mentioned before, and it plays an important role.
Discussed with rmind. Probably not the last pass.
2018-09-04 15:36:01 +00:00
riastradh d1579b2d70 Rename min/max -> uimin/uimax for better honesty.
These functions are defined on unsigned int.  The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER!  Some subsystems have

	#define min(a, b)	((a) < (b) ? (a) : (b))
	#define max(a, b)	((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX.  Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate.  But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all.  (Who knows, maybe in some cases integer
truncation is actually intended!)
2018-09-03 16:29:22 +00:00
wiz 0394df431b New sentence, new line. Use Fn for functions. 2018-09-02 18:03:23 +00:00
maxv c09ea90fc6 Be clearer about the difference between static vs dynamic interface list,
and slightly improve wording.

My understanding is that when none of inet4/inet6/ifaddrs is passed, NPF
assumes ifaddrs.
2018-09-02 17:45:18 +00:00
wiz 25be4c69af Remove superfluous Pp. 2018-09-01 19:26:46 +00:00
rmind b5635267ab npf.conf(5): fix some of the previous incorrect or inaccurate changes.
The TCP flags option is not only for the stateful tracking.  Dynamic NAT
implies NAPT; algorithms, at least for now, are for static NAT mappings.
Mention that ALG ICMP is also for traceroute behind NAT; also mention
"MSS clamping" (some users might search for this term, so keeping the
terminology is helpful).
2018-09-01 16:28:57 +00:00
maxv e3e075e240 rename net-seg -> map-seg, and document it 2018-08-31 11:18:35 +00:00
maxv e6e69c66e8 "interface" already contains "var-name", so don't mention it in "filt-addr",
that's redundant
2018-08-31 11:11:21 +00:00
maxv 7af2b2f68b should be port-opts 2018-08-31 11:01:09 +00:00
maxv 20048da297 Clarify the "Groups" section. 2018-08-31 10:52:30 +00:00
maxv 918cd75c72 remove commented reference to pflog 2018-08-31 10:38:17 +00:00
wiz 367a79e6ff Add missing -width; remove unnecessary .Pp. 2018-08-27 13:20:47 +00:00
maxv 6cf056e7fd Improve the "Map" section. 2018-08-27 13:09:16 +00:00
maxv c4abcc5a94 Document ALGs. 2018-08-27 12:46:03 +00:00
martin 1ebe46fcad Remove userland part of ndis 2018-08-25 11:06:00 +00:00
abhinav 50d4d47f30 Adjust makemandb for the latest mandoc
ok christos@
2018-08-24 16:01:57 +00:00
maxv 5458b5faf0 Add the values of "algo" in the grammar, and use # as comment marker for
man-k.org (and others) not to highlight things in an incorrect way.
2018-08-17 12:20:49 +00:00
maxv 143312eb5c Add missing quote in static-rule, it causes man-k.org (and other tools)
to wrongly highlight the grammar.
2018-08-17 12:04:20 +00:00
maxv 1dbf263b8b Replace "rproc"->"proc" in the grammar (spotted by he@), and slightly
reword.
2018-08-17 10:24:19 +00:00
maxv f8cd5f425f Replace () by [] in tcp-flags.
Fix proc-opts, the value is optional, noted by he@.
2018-08-17 10:16:24 +00:00
maxv 29f7e3440d Improve wording. 2018-08-16 09:58:00 +00:00
maxv ded4e9d920 Improve the "Map" section a little. 2018-08-16 09:50:37 +00:00
maxv 16b11b4076 Document the "flags" keyword. 2018-08-16 09:46:18 +00:00
maxv b8e06d89f6 Improve the "Rules" section: better explain the "final" keyword (it is
the same as PF's "quick", so use the same wording), and document the
"return" options.

While here simplify the man code, suggested by wiz.
2018-08-16 09:21:00 +00:00
maxv 65ac579f46 Add quotes around the option names, to match the actual npf conf. 2018-08-16 08:51:53 +00:00
maxv 0a9ee16931 Enlighten the "Procedures" section. In particular document the "no-df"
option. Also replace "normalisation" -> "normalization", to match the
name of the rule.
2018-08-16 08:37:51 +00:00
kre 6a7c82e6b2 In the latest mandoc (mdocml) the signature (prototype) of
mparse_alloc() altered - update the call here to compensate.

This fixes the build (of makemandb), but I am not sure that
the changed version is what is desired - someone who knows
something about all of this should validate ... I just copied
the invocation from mandoc's demandoc.c (which seems likely
to be at least a similar kind of usage).
2018-08-16 05:07:22 +00:00
wiz 444a305543 Add missing El. Remove trailing whitespace. 2018-08-13 06:06:13 +00:00
christos 61bf19f212 i386 does not have a variable min address (yet) 2018-08-12 16:00:41 +00:00
christos 5ceff8e2e0 reorder 2018-08-12 15:55:26 +00:00
christos 5b4ae9b813 make things link again. 2018-08-12 15:05:13 +00:00
sevan eb0a9b17da Simplify the description of npfd, default npflog interface & pcap file are
covered later.
Move advise regarding offline analysis to the CAVEATS section.
2018-08-07 22:55:47 +00:00
sevan 1d6667cee9 Escape ellipsis to stop it being interpreted as a macro.
Drop commented out manual which doesn't exist.
2018-08-07 22:02:08 +00:00
sevan eaf2f5a246 First pass at editing this manual.
Add a link to the NPF documentation website and refer to it.
Switch the multiple structural elements to a list to make it easier to read and
extend.
Clarify tables, re-order so all terms are before the example.
Clarify obtaining addresses per family
Move the minimum requirement for a default group to the group section.
2018-08-07 00:22:13 +00:00
sevan 059f47e275 Use Nm macro
Move history details to the HISTORY section
Spelling
Be less meta & clarify the website should be consulted.
2018-08-02 16:42:12 +00:00
nonaka b62b80c748 arp(8): Fix the host output when arp -dav. 2018-07-31 09:45:52 +00:00
wiz 10fabe8c03 Fix mandoc warnings. 2018-07-29 21:17:43 +00:00
sevan 0a9053f0f4 Document "in" field in CPU section
Fix ps(1) Xr raised by mandoc -Tlint
2018-07-29 17:03:02 +00:00
kamil a9b2b066a2 Avoid potential undefined behavior in bta2dpd(8)
The operator >> causes implicit promotion to int.

There is need to cast the result back to uint8_t in order to save the
return value to a data undef a pointe of type uint8_t.

Requested by GCC when building with Undefined Behavior Sanitizer.
2018-07-25 19:03:50 +00:00
maxv 1b2a6113eb Add a "support" section. 2018-07-24 10:05:36 +00:00
maxv 8c9dd8d036 Use errx, there is no errno. 2018-07-24 09:50:37 +00:00
kre 3ef826f570 PR bin/53458
Bring this script a little up to date - make it work with modern /bin/sh
(avoid HOSTNAME as a random variable) clean up trailing spaces on lines,
use $( ) instead of `` ...
2018-07-20 13:11:01 +00:00
wiz b15bdb80e1 Various improvements to man page. Sync usage. 2018-07-18 16:50:05 +00:00
christos 413e9419ec cast through intptr_t 2018-07-16 01:04:47 +00:00
jmcneill 091e75868b Add ARMv7 support. 2018-07-15 23:50:53 +00:00
jmcneill 0b7c38e1ef Add ARMv8 support. 2018-07-15 16:25:31 +00:00
jmcneill de53e8aea9 Fix a crash when running tprof with no arguments; check argc before accessing argv[0] 2018-07-14 16:34:15 +00:00
jmcneill 4ab6de2316 Mark tprof_event_init, tprof_event_list, tprof_event_lookup as dead 2018-07-14 15:38:59 +00:00
maxv 8addf8a6b5 specialreg.h is x86-specific, don't include it 2018-07-14 07:54:37 +00:00
maxv 9896bc73ca Finish the Skylake/Kabylake table, and improve the output of "tprof analyze". 2018-07-14 07:54:04 +00:00
joerg e290a3e9b8 Mark tprof_monitor as dead 2018-07-13 19:54:53 +00:00
maxv c52e6df86c Ask for a file path with the "analyze" command, instead of reading stdin. 2018-07-13 12:04:50 +00:00
maxv 5ae6235d0e Remove tpfmt(1). Its code was merged into tprof(8). 2018-07-13 11:14:14 +00:00
maxv 96b21aedb9 Merge tpfmt(1) into tprof(8). We want to have access to everything with
only one tool. The code is copied mostly as-is, and the functionality is
available via the "analyze" command.

Eg:
	tprof monitor -e llc-misses:k -o myfile.out sleep 20
	tprof analyze < myfile.out

Will move soon, I don't like the reading via stdin.
2018-07-13 11:03:36 +00:00
maxv 48aa814610 Skylake/Kabylake are family 6, so add a check for that. While here improve
the layout of "tprof list".
2018-07-13 09:53:42 +00:00
maxv ab933b7bbb Change the arguments of the tprof tool, to match the behavior of pmc(1) and
cpuctl(8). They become:

	tprof list
	tprof monitor -e name:option [-o outfile] command
2018-07-13 09:04:31 +00:00
maxv 8dd2f31aad Inline the values in amd_f10h_names[], we're not going to use defines for
each CPU model found in the wild.
2018-07-13 08:09:21 +00:00