summaryrefslogtreecommitdiff
path: root/x11perf.c
AgeCommit message (Collapse)Author
2024-04-18When users give invalid arguments, tell them what they did wrongAlan Coopersmith
Don't just dump a usage message and leave them to figure it out Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/test/x11perf/-/merge_requests/10>
2024-04-18Add -help [options|tests|all] and remove tests from default usage messageAlan Coopersmith
Previously, the error message when giving a bad option was over 350 lines long. This moves the list of tests out into the `-help tests` option and makes the usage error message a much more reasonable 32 lines long. (Also accepts but does not document --help.) Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/test/x11perf/-/merge_requests/10>
2024-04-18Add -version optionAlan Coopersmith
(Also accepts but does not document --version) Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/test/x11perf/-/merge_requests/10>
2024-04-18Add -v1.6 & -v1.7 to recognized version flagsAlan Coopersmith
Also adds missing -v1.4 & -v1.5 to the man page. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/test/x11perf/-/merge_requests/10>
2024-04-13Don't try to make XOR 'look good'. Best to make it visible.Keith Packard
Attempts to pick 'good' pixel values to make XOR rendering look decent instead make it invisible on modern TrueColor visuals. Just use the defined fg/bg pixel values, which at least make it appear. Adapt to this change by drawing the lines for the blt tests in copy mode so they appear on the screen. Signed-off-by: Keith Packard <keithp@keithp.com> Part-of: <https://gitlab.freedesktop.org/xorg/test/x11perf/-/merge_requests/1>
2024-04-13Set position of the status window based on perf window posKeith Packard
Part-of: <https://gitlab.freedesktop.org/xorg/test/x11perf/-/merge_requests/1>
2024-04-13Strip trailing whitespace from source filesAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-15Stop casting return value of malloc() and calloc()Alan Coopersmith
Not needed in C89 and later, and may hide errors Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-15Variable scope reductions as recommended by cppcheckAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-09Fix spelling/wording issuesAlan Coopersmith
Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2015-07-19Make NameFromFormat() const.Thomas Klausner
Fixes a const-discard warning. Signed-off-by: Thomas Klausner <wiz@NetBSD.org> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2015-01-13remove srand(1) call as nothing calls any rand like functions in x11perfMatthieu Herrb
Signed-off-by: Matthieu Herrb <matthieu@herrb.eu> Reviewed-by: Thomas Klausner <wiz@NetBSD.org>
2014-10-25Combine help_message array into a single stringAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-03-10Add '-pause' option to delay between runsKeith Packard
This lets the package cool down to get more consistent performance numbers. Signed-off-by: Keith Packard <keithp@keithp.com>
2014-03-05Switch to 64-bit intsKeith Packard
2014-03-05Fix reported pixmap format nameKeith Packard
2013-02-23Assume signal handlers return void, as C89 requiresAlan Coopersmith
Drops use of autoconf's obsolete AC_TYPE_SIGNAL Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-20Drop imake fallback for RETSIGTYPE definitionAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-20Mark usage & AbortTest as _X_NORETURNAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-09-28Add const attributes to fix gcc -Wwrite-strings warningsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-11-23Merge fixes from git://anongit.freedesktop.org/~peterh/x11perfPeter Harris
2010-11-23Avoid "rep" calculation overflow.Peter Harris
On today's fast machines, "treps" can easily overflow a 32-bit number. Use "long long" to calculate reps. Signed-off-by: Peter Harris <pharris@opentext.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
2010-11-23Clamp test time to positive values.Peter Harris
If there is some jitter in the sync time, operations can complete in a negative amount of time (confusing both humans and x11perfcomp). Signed-off-by: Peter Harris <pharris@opentext.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
2010-01-02Add -falseprecision flag for ludicrously precise statsAdam Jackson
The normal round-to-three-significant-figures behaviour, while morally correct from a benchmarking perspective, makes it impossible to measure variances between runs of less than 1%. Occasionally you really do need to measure that finely - for example, if tweaking the server's main dispatch loop. Signed-off-by: Adam Jackson <ajax@redhat.com>
2010-01-02Death to RCS tags.Adam Jackson
Signed-off-by: Adam Jackson <ajax@redhat.com>
2009-01-13Ansification and compile warning fixes.Paulo Cesar Pereira de Andrade
This also uses XORG_CHANGELOG and XORG_CWARNFLAGS, and corrects make distcheck.
2007-09-10Add Compositing tests.Keith Packard
-compwinwinXX, -comppixwinXX where XX is 10, 100 or 500. -pop <POP> <POP> ... where <POP> is one of Clear, Src, Dst, Over, OverReverse, In, InReverse, Out, OutReverse, Atop, AtopReverse, Xor, Add or Saturate. -format <FORMAT> <FORMAT> ... where <FORMAT> is one of RGB24, ARGB32, A8, A4, A1 or NATIVE
2006-02-14Detect when Render is available and turn those tests on.Eric Anholt
2005-07-26Add config.h includes for modularization Use RETSIGTYPE if defined byXORG-6_8_99_903XORG-6_8_99_902XORG-6_8_99_901XORG-6_8_99_900Alan Coopersmith
autoconf in addition to Imake's SIGNALRETURNSINT. Use HAVE_WORKING_VFORK if defined by autoconf in addition to Imake's HAS_VFORK
2004-04-23Merging XORG-CURRENT into trunkXACE-SELINUX-MERGEEgbert Eich
2004-03-14Importing vendor version xf86-4_4_99_1 on Sun Mar 14 00:26:39 PST 2004xf86-4_4_99_1Egbert Eich
2004-03-03Importing vendor version xf86-4_4_0 on Wed Mar 3 04:09:24 PST 2004xf86-4_4_0Egbert Eich
2004-02-26readding XFree86's cvs IDsxf86-4_3_99_903Egbert Eich
2004-02-26Importing vendor version xf86-4_3_99_903 on Wed Feb 26 01:21:00 PST 2004Egbert Eich
2003-11-14XFree86 4.3.0.1xf86-4_3_0_1PRE_xf86-4_3_0_1Kaleb Keithley
2003-11-14R6.6 is the Xorg base-lineXORG-MAINKaleb Keithley