OpenBSD CVS

CVS log for src/usr.bin/pctr/pctr.c


[BACK] Up to [local] / src / usr.bin / pctr

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.24 / (download) - annotate - [select for diffs], Fri Jun 28 13:35:02 2019 UTC (4 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, HEAD
Changes since 1.23: +5 -5 lines
Diff to previous 1.23 (colored)

When system calls indicate an error they return -1, not some arbitrary
value < 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

Revision 1.23 / (download) - annotate - [select for diffs], Sun Sep 10 11:30:43 2017 UTC (6 years, 8 months ago) by tom
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.22: +3 -7 lines
Diff to previous 1.22 (colored)

sysctl strings include the termingating NUL character in both in and out lengths

Prompted by Nan Xiao noticing the redundancy of bzero+termination - thanks.

ok deraadt@

Revision 1.22 / (download) - annotate - [select for diffs], Sun Feb 8 23:40:34 2015 UTC (9 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.21: +13 -13 lines
Diff to previous 1.21 (colored)

in getopt() blocks, stop incrementing flag variable which are supposed
to just be 0/1
ok miod florian

Revision 1.21 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:10 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.20: +1 -2 lines
Diff to previous 1.20 (colored)

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible.  Annotate <sys/param.h> lines with their current reasons.  Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc.  Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution.  These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)

Revision 1.20 / (download) - annotate - [select for diffs], Tue Jul 8 21:39:52 2008 UTC (15 years, 10 months ago) by sobrado
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

sort options in manual page; display a better usage.

Revision 1.19 / (download) - annotate - [select for diffs], Fri Nov 16 16:34:33 2007 UTC (16 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

spacing

Revision 1.18 / (download) - annotate - [select for diffs], Fri Nov 16 15:03:31 2007 UTC (16 years, 6 months ago) by mikeb
Branch: MAIN
Changes since 1.17: +50 -51 lines
Diff to previous 1.17 (colored)

- Fix error handling code.
- Change some function names to conform with Core Duo names.
- Correct hadnling of the functions that need non-zero Unit Mast specification.
- Some other random cleanup.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Oct 25 16:38:06 2007 UTC (16 years, 6 months ago) by mikeb
Branch: MAIN
Changes since 1.16: +53 -60 lines
Diff to previous 1.16 (colored)

Cleanup pctr code: sort options, remove nasty return.

ok deraadt

Revision 1.16 / (download) - annotate - [select for diffs], Wed Oct 24 17:57:01 2007 UTC (16 years, 6 months ago) by mikeb
Branch: MAIN
Changes since 1.15: +1 -2 lines
Diff to previous 1.15 (colored)

Remove idle loop counter.

ok art deraadt

Revision 1.15 / (download) - annotate - [select for diffs], Wed Oct 17 14:54:30 2007 UTC (16 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.14: +42 -42 lines
Diff to previous 1.14 (colored)

more unification between amd64 and i386 (API changes, but we think
noone else uses this acpi except the command); from Mike Belopuhov

Revision 1.14 / (download) - annotate - [select for diffs], Wed Oct 17 11:33:55 2007 UTC (16 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.13: +5 -5 lines
Diff to previous 1.13 (colored)

- fix several switch statements regarding falling through the case statement;
- remove double break;
from Mike Belopuhov

Revision 1.13 / (download) - annotate - [select for diffs], Wed Oct 17 02:30:23 2007 UTC (16 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.12: +470 -511 lines
Diff to previous 1.12 (colored)

replacement for the pctr codebase that can handle amd64 processors as
well (in fact, all 4 combinations of codebase and processor) written by
Mike Belopuhov and Aleksey Lomovtsev

Revision 1.12 / (download) - annotate - [select for diffs], Sun Dec 19 13:26:48 2004 UTC (19 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.11: +72 -75 lines
Diff to previous 1.11 (colored)

spacing

Revision 1.11 / (download) - annotate - [select for diffs], Mon Aug 4 17:06:44 2003 UTC (20 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

protos

Revision 1.10 / (download) - annotate - [select for diffs], Tue Jun 10 22:20:49 2003 UTC (20 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.9: +20 -24 lines
Diff to previous 1.9 (colored)

mostly ansi cleanup; pval ok

Revision 1.9 / (download) - annotate - [select for diffs], Sun Dec 15 13:16:12 2002 UTC (21 years, 5 months ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

typo; torh at bogus.net

Revision 1.8 / (download) - annotate - [select for diffs], Wed May 29 09:23:25 2002 UTC (21 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.7: +7 -6 lines
Diff to previous 1.7 (colored)

more snprintf

Revision 1.7 / (download) - annotate - [select for diffs], Sun Aug 19 19:26:03 2001 UTC (22 years, 9 months ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1, OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.6: +464 -475 lines
Diff to previous 1.6 (colored)

err/warn and knf

Revision 1.6 / (download) - annotate - [select for diffs], Wed Jul 18 17:17:39 2001 UTC (22 years, 10 months ago) by pvalchev
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

-Wall cleanup

Revision 1.5 / (download) - annotate - [select for diffs], Tue Jun 5 05:05:39 2001 UTC (22 years, 11 months ago) by pvalchev
Branch: MAIN
Changes since 1.4: +2 -3 lines
Diff to previous 1.4 (colored)

License clarification from David Mazieres, ok deraadt@

Revision 1.4 / (download) - annotate - [select for diffs], Sun Aug 30 22:35:37 1998 UTC (25 years, 8 months ago) by downsj
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6, OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.3: +60 -58 lines
Diff to previous 1.3 (colored)

Use the kernel's copy of the cpuid information.

This really ought to just be removed...

Revision 1.3 / (download) - annotate - [select for diffs], Wed May 27 02:26:07 1998 UTC (25 years, 11 months ago) by downsj
Branch: MAIN
Changes since 1.2: +32 -1 lines
Diff to previous 1.2 (colored)

compile; needs lots of work.

Revision 1.2 / (download) - annotate - [select for diffs], Fri Aug 16 00:02:35 1996 UTC (27 years, 9 months ago) by dm
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2, OPENBSD_2_1_BASE, OPENBSD_2_1, OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.1: +3 -7 lines
Diff to previous 1.1 (colored)

Some mostly cosmetic bug fixes.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Aug 14 22:31:48 1996 UTC (27 years, 9 months ago) by dm
Branch: MAIN

7 consonants was just too many.  pctrctl -> pctr.

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.