The NetBSD Project

CVS log for src/usr.sbin/tprof/tprof.8

[BACK] Up to [cvs.NetBSD.org] / src / usr.sbin / tprof

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.24 / (download) - annotate - [select for diffs], Fri Dec 16 08:02:04 2022 UTC (3 months ago) by ryo
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, HEAD
Changes since 1.23: +15 -15 lines
Diff to previous 1.23 (colored)

the "scale" option can be specified in the event name even in "tprof monitor"

Revision 1.23 / (download) - annotate - [select for diffs], Fri Dec 16 08:00:47 2022 UTC (3 months ago) by ryo
Branch: MAIN
Changes since 1.22: +4 -2 lines
Diff to previous 1.22 (colored)

- 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.

Revision 1.22 / (download) - annotate - [select for diffs], Fri Dec 9 01:59:51 2022 UTC (3 months, 1 week ago) by ryo
Branch: MAIN
Changes since 1.21: +3 -1 lines
Diff to previous 1.21 (colored)

supported AMD family added

Revision 1.21 / (download) - annotate - [select for diffs], Fri Dec 9 01:56:40 2022 UTC (3 months, 1 week ago) by ryo
Branch: MAIN
Changes since 1.20: +16 -1 lines
Diff to previous 1.20 (colored)

mainly fixes around display.

- use terminfo
- dynamically adjust column widths
- mode can be changed while running

Revision 1.20 / (download) - annotate - [select for diffs], Fri Dec 9 01:55:46 2022 UTC (3 months, 1 week ago) by ryo
Branch: MAIN
Changes since 1.19: +10 -5 lines
Diff to previous 1.19 (colored)

add accumulative mode. "tprof top -a"

Revision 1.19 / (download) - annotate - [select for diffs], Thu Dec 1 00:43:27 2022 UTC (3 months, 2 weeks ago) by ryo
Branch: MAIN
Changes since 1.18: +34 -1 lines
Diff to previous 1.18 (colored)

add "top" subcommand to tprof(8)

Revision 1.18 / (download) - annotate - [select for diffs], Thu Dec 1 00:40:05 2022 UTC (3 months, 2 weeks ago) by ryo
Branch: MAIN
Changes since 1.17: +16 -3 lines
Diff to previous 1.17 (colored)

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'.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Dec 1 00:32:52 2022 UTC (3 months, 2 weeks ago) by ryo
Branch: MAIN
Changes since 1.16: +3 -2 lines
Diff to previous 1.16 (colored)

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.

Revision 1.16 / (download) - annotate - [select for diffs], Wed May 25 06:17:19 2022 UTC (9 months, 3 weeks ago) by msaitoh
Branch: MAIN
Changes since 1.15: +4 -1 lines
Diff to previous 1.15 (colored)

Add note about tprof(4) for people like me who forget to load tprof_x86.

Revision 1.3.42.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:06:06 2020 UTC (2 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.3.42.1: +4 -2 lines
Diff to previous 1.3.42.1 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Sat Oct 12 14:34:45 2019 UTC (3 years, 5 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Changes since 1.14: +4 -2 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

Pull up following revision(s) (requested by jmcneill in ticket #301):

	usr.sbin/tprof/tprof.8: revision 1.15
	sys/dev/tprof/tprof_x86_amd.c: revision 1.5
	usr.sbin/tprof/arch/tprof_x86.c: revision 1.9

Match Family 15h

 -

Add support for AMD Family 15h

 -

Add AMD Family 15h to supported model list

Revision 1.15 / (download) - annotate - [select for diffs], Fri Oct 11 20:18:20 2019 UTC (3 years, 5 months ago) by jmcneill
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.14: +4 -2 lines
Diff to previous 1.14 (colored)

Add AMD Family 15h to supported model list

Revision 1.3.42.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:10:43 2019 UTC (3 years, 9 months ago) by christos
Branch: phil-wifi
Changes since 1.3: +96 -35 lines
Diff to previous 1.3 (colored)

Sync with HEAD

Revision 1.14 / (download) - annotate - [select for diffs], Wed May 29 17:09:17 2019 UTC (3 years, 9 months ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-20190609, netbsd-9-base
Branch point for: netbsd-9
Changes since 1.13: +5 -3 lines
Diff to previous 1.13 (colored)

Add support for AMD Family 17h.

Revision 1.3.40.3 / (download) - annotate - [select for diffs], Wed Dec 26 14:02:12 2018 UTC (4 years, 2 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.3.40.2: +6 -2 lines
Diff to previous 1.3.40.2 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

Sync with HEAD, resolve a few conflicts

Revision 1.13 / (download) - annotate - [select for diffs], Mon Nov 26 23:20:56 2018 UTC (4 years, 3 months ago) by knakahara
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226
Changes since 1.12: +4 -2 lines
Diff to previous 1.12 (colored)

tprof: Add goldmont plus support. Tested by msaitoh@n.o, thanks.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Nov 26 07:45:47 2018 UTC (4 years, 3 months ago) by knakahara
Branch: MAIN
Changes since 1.11: +4 -2 lines
Diff to previous 1.11 (colored)

tprof: Add goldmont support.

I tested on Atom C3558 (Denverton).

Revision 1.3.40.2 / (download) - annotate - [select for diffs], Mon Nov 26 01:52:59 2018 UTC (4 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.3.40.1: +4 -2 lines
Diff to previous 1.3.40.1 (colored) to branchpoint 1.3 (colored)

Sync with HEAD, resolve a couple of conflicts

Revision 1.11 / (download) - annotate - [select for diffs], Tue Nov 20 06:43:26 2018 UTC (4 years, 4 months ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-compat-1126
Changes since 1.10: +4 -2 lines
Diff to previous 1.10 (colored)

Note support for Intel Silvermont/Airmont.

Revision 1.3.40.1 / (download) - annotate - [select for diffs], Sat Jul 28 04:38:15 2018 UTC (4 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.3: +87 -34 lines
Diff to previous 1.3 (colored)

Sync with HEAD

Revision 1.10 / (download) - annotate - [select for diffs], Tue Jul 24 10:05:36 2018 UTC (4 years, 7 months ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728
Changes since 1.9: +16 -2 lines
Diff to previous 1.9 (colored)

Add a "support" section.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Jul 18 16:50:05 2018 UTC (4 years, 8 months ago) by wiz
Branch: MAIN
Changes since 1.8: +6 -8 lines
Diff to previous 1.8 (colored)

Various improvements to man page. Sync usage.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Jul 13 12:04:50 2018 UTC (4 years, 8 months ago) by maxv
Branch: MAIN
Changes since 1.7: +6 -4 lines
Diff to previous 1.7 (colored)

Ask for a file path with the "analyze" command, instead of reading stdin.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Jul 13 11:14:14 2018 UTC (4 years, 8 months ago) by maxv
Branch: MAIN
Changes since 1.6: +1 -2 lines
Diff to previous 1.6 (colored)

Remove tpfmt(1). Its code was merged into tprof(8).

Revision 1.6 / (download) - annotate - [select for diffs], Fri Jul 13 11:03:36 2018 UTC (4 years, 8 months ago) by maxv
Branch: MAIN
Changes since 1.5: +33 -1 lines
Diff to previous 1.5 (colored)

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.

Revision 1.5 / (download) - annotate - [select for diffs], Fri Jul 13 09:04:31 2018 UTC (4 years, 8 months ago) by maxv
Branch: MAIN
Changes since 1.4: +26 -20 lines
Diff to previous 1.4 (colored)

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

Revision 1.4 / (download) - annotate - [select for diffs], Fri Jul 13 07:56:29 2018 UTC (4 years, 8 months ago) by maxv
Branch: MAIN
Changes since 1.3: +21 -19 lines
Diff to previous 1.3 (colored)

Revamp tprof.

Rewrite the Intel backend to use the generic PMC interface, which is
available on all Intel CPUs. Synchronize the AMD backend with the new
interface.

The kernel identifies the PMC interface, and gives its id to userland.
Userland then queries the events itself (via cpuid etc). These events
depend on the PMC interface.

The tprof utility is rewritten to allow the user to choose which event
to count (which was not possible until now, the event was hardcoded in
the backend). The command line format is based on usr.bin/pmc, eg:

	tprof -e llc-misses:k -o output sleep 20

The man page is updated too, but the arguments will likely change soon
anyway so it doesn't matter a lot.

The tprof utility has three tables:

	Intel Architectural Version 1
	Intel Skylake/Kabylake
	AMD Family 10h

A CPU can support a combination of tables. For example Kabylake has
Intel-Architectural-Version-1 and its own Intel-Kabylake table.

For now the Intel Skylake/Kabylake table contains only one event, just
to demonstrate that the combination of tables works. Tested on an
Intel Core i5 Kabylake.

The code for AMD Family 10h is taken from the code I had written for
usr.bin/pmc. I haven't tested it yet, but it's the same as pmc(1), so
I guess it works as-is.

The whole thing is written in such a way that (I think) it is not
complicated to add more CPU models, and more architectures (other than
x86).

Revision 1.3.4.2 / (download) - annotate - [select for diffs], Tue Apr 17 00:09:54 2012 UTC (10 years, 11 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.3.4.1: +121 -0 lines
Diff to previous 1.3.4.1 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

sync with head

Revision 1.3.4.1, Fri Dec 9 15:26:48 2011 UTC (11 years, 3 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.3: +0 -121 lines
FILE REMOVED

file tprof.8 was added on branch yamt-pagecache on 2012-04-17 00:09:54 +0000

Revision 1.3 / (download) - annotate - [select for diffs], Fri Dec 9 15:26:48 2011 UTC (11 years, 3 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-base, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb8-mediatek-base, matt-nb8-mediatek, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, agc-symver-base, agc-symver
Branch point for: yamt-pagecache, phil-wifi, pgoyette-compat
Changes since 1.2: +12 -6 lines
Diff to previous 1.2 (colored)

- add a CAVEATS
- fix a warning

Revision 1.2 / (download) - annotate - [select for diffs], Sat Nov 26 22:49:37 2011 UTC (11 years, 3 months ago) by wiz
Branch: MAIN
Changes since 1.1: +11 -11 lines
Diff to previous 1.1 (colored)

Improve wording, sort sections, remove ls(1) escapee.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Nov 26 05:02:44 2011 UTC (11 years, 3 months ago) by yamt
Branch: MAIN

man page

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>