fio.git
7 years agogfio: make empty graph show grid lines, not "No good data"
Stephen M. Cameron [Wed, 7 Mar 2012 13:47:38 +0000 (14:47 +0100)]
gfio: make empty graph show grid lines, not "No good data"

This is done by adding a bit of "invisible data" to the graph
at the beginning.

Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agogfio: make graph background white
Stephen M. Cameron [Wed, 7 Mar 2012 13:47:03 +0000 (14:47 +0100)]
gfio: make graph background white

Signed-off-by: Stephen M. Cameron <stephenmcameron@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agogfio: add license
Jens Axboe [Wed, 7 Mar 2012 13:24:57 +0000 (14:24 +0100)]
gfio: add license

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agogfio: update about dialog
Jens Axboe [Wed, 7 Mar 2012 13:18:28 +0000 (14:18 +0100)]
gfio: update about dialog

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agogfio: add font selection and resize original window
Jens Axboe [Wed, 7 Mar 2012 12:14:32 +0000 (13:14 +0100)]
gfio: add font selection and resize original window

Font doesn't quite work yet, since we still setup the graphs
before anything is loaded. Will fix that later.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agograph: use unsigned ints
Jens Axboe [Wed, 7 Mar 2012 11:31:40 +0000 (12:31 +0100)]
graph: use unsigned ints

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agogfio: be a bit more clever on when to auto-start backend or not
Jens Axboe [Wed, 7 Mar 2012 10:45:07 +0000 (11:45 +0100)]
gfio: be a bit more clever on when to auto-start backend or not

If we are connecting remotely, don't show the option.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoparser: relax restriction on postfix ranges
Jens Axboe [Wed, 7 Mar 2012 09:53:29 +0000 (10:53 +0100)]
parser: relax restriction on postfix ranges

Currently we misparse this option:

bs=1k,4k

as read_bs=1, and write_bs=4096, since we compare the postfix
strictly against "k,4k". Use range compares instead.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agogfio: add *.ini as fio job file filter
Jens Axboe [Wed, 7 Mar 2012 07:19:30 +0000 (08:19 +0100)]
gfio: add *.ini as fio job file filter

Lots of people seem to name their job files that, so
lets add the filter.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agogfio: Add graphs for read/write bandwidth and read/write IOPS
Jens Axboe [Wed, 7 Mar 2012 07:07:39 +0000 (08:07 +0100)]
gfio: Add graphs for read/write bandwidth and read/write IOPS

Signed-off-by: Stephen M. Cameron <stephenmcameron@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agogfio: Add mini library to draw bar graphs and line graphs
Stephen M. Cameron [Wed, 7 Mar 2012 06:56:16 +0000 (07:56 +0100)]
gfio: Add mini library to draw bar graphs and line graphs

Signed-off-by: Stephen M. Cameron <stephenmcameron@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agogfio: clear progress bar on job end
Jens Axboe [Tue, 6 Mar 2012 19:47:15 +0000 (20:47 +0100)]
gfio: clear progress bar on job end

And detach fio server thread.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agogfio: first attempt at actually automatically starting backend server
Jens Axboe [Tue, 6 Mar 2012 19:08:59 +0000 (20:08 +0100)]
gfio: first attempt at actually automatically starting backend server

It doesn't handle multiple connections, after the first job completes,
gfio must be restarted.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoAdd my copyright to gfio.c
Jens Axboe [Tue, 6 Mar 2012 14:39:15 +0000 (15:39 +0100)]
Add my copyright to gfio.c

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoserver: fixup bug in sending jobs_eta command
Jens Axboe [Tue, 6 Mar 2012 14:37:40 +0000 (15:37 +0100)]
server: fixup bug in sending jobs_eta command

We stored nr_running in elapsed_sec, causing ETA to only
be reliable on the client when the job neared completion.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agogfio: connect buton fix
Jens Axboe [Tue, 6 Mar 2012 13:00:42 +0000 (14:00 +0100)]
gfio: connect buton fix

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agogfio: enable tree view grid lines
Jens Axboe [Tue, 6 Mar 2012 12:55:45 +0000 (13:55 +0100)]
gfio: enable tree view grid lines

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agogfio: align log text to the left
Jens Axboe [Tue, 6 Mar 2012 12:49:12 +0000 (13:49 +0100)]
gfio: align log text to the left

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agogfio: don't use gtk_combo_box_text
Jens Axboe [Tue, 6 Mar 2012 12:46:21 +0000 (13:46 +0100)]
gfio: don't use gtk_combo_box_text

It's not available in gtk 2.18, which is fairly common.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agogfio: make log window scrollable
Jens Axboe [Tue, 6 Mar 2012 12:36:17 +0000 (13:36 +0100)]
gfio: make log window scrollable

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agogfio: better handling of connect/disconnect button
Jens Axboe [Tue, 6 Mar 2012 11:55:29 +0000 (12:55 +0100)]
gfio: better handling of connect/disconnect button

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agogfio: add disk utilization output to end results
Jens Axboe [Tue, 6 Mar 2012 11:14:42 +0000 (12:14 +0100)]
gfio: add disk utilization output to end results

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agogfio: add log viewer
Jens Axboe [Tue, 6 Mar 2012 10:02:52 +0000 (11:02 +0100)]
gfio: add log viewer

Replaces old text_op.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agogfio: put results from same job file into a notebook
Jens Axboe [Tue, 6 Mar 2012 08:52:49 +0000 (09:52 +0100)]
gfio: put results from same job file into a notebook

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agogfio: use a window for results, not a dialog box
Jens Axboe [Tue, 6 Mar 2012 08:37:26 +0000 (09:37 +0100)]
gfio: use a window for results, not a dialog box

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agogfio: ensure all command opcode handlers are properly gdk thread protected
Jens Axboe [Tue, 6 Mar 2012 08:23:27 +0000 (09:23 +0100)]
gfio: ensure all command opcode handlers are properly gdk thread protected

Since we get this callback from our handling thread, we
need to use gdk_threads_enter() and gdk_threads_leave()
to ensure proper locking.

This fixes various crashes.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agogfio: correct depths view
Jens Axboe [Tue, 6 Mar 2012 08:17:59 +0000 (09:17 +0100)]
gfio: correct depths view

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agogfio: move bandwidth stats
Jens Axboe [Tue, 6 Mar 2012 07:09:17 +0000 (08:09 +0100)]
gfio: move bandwidth stats

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agogfio: add os resource usage and io depth display
Jens Axboe [Mon, 5 Mar 2012 21:07:54 +0000 (22:07 +0100)]
gfio: add os resource usage and io depth display

IO depths is a bit of a hack, needs work.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agogfio: add latency bucket display
Jens Axboe [Mon, 5 Mar 2012 20:38:12 +0000 (21:38 +0100)]
gfio: add latency bucket display

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoMove stat arrays into show/calc func
Jens Axboe [Mon, 5 Mar 2012 19:49:10 +0000 (20:49 +0100)]
Move stat arrays into show/calc func

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agogfio: fixup bw display
Jens Axboe [Mon, 5 Mar 2012 19:44:11 +0000 (20:44 +0100)]
gfio: fixup bw display

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agogfio: Change some labels to entries and add bw stats to final output
Jens Axboe [Mon, 5 Mar 2012 19:04:43 +0000 (20:04 +0100)]
gfio: Change some labels to entries and add bw stats to final output

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoAdd completion percentiles to results output
Jens Axboe [Mon, 5 Mar 2012 15:43:49 +0000 (16:43 +0100)]
Add completion percentiles to results output

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoEnd results fixes
Jens Axboe [Mon, 5 Mar 2012 13:37:38 +0000 (14:37 +0100)]
End results fixes

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agogfio: start of proper end results data display
Jens Axboe [Mon, 5 Mar 2012 13:09:03 +0000 (14:09 +0100)]
gfio: start of proper end results data display

Incomplete, it's just a start.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agostat: move calc of latencies into show function
Jens Axboe [Mon, 5 Mar 2012 13:08:34 +0000 (14:08 +0100)]
stat: move calc of latencies into show function

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoAdd client references
Jens Axboe [Mon, 5 Mar 2012 12:32:47 +0000 (13:32 +0100)]
Add client references

We have a use-after-free in the fio_handle_clients() loop.
If we receive a QUIT command, we remove the client in
fio_handle_client(). But fio_handle_clients() doesn't
have a way to detect this, so it checks client->error
after it has potentially been freed.

Add a simple reference to get rid of this problem.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoUnify cli latency display
Jens Axboe [Mon, 5 Mar 2012 12:08:51 +0000 (13:08 +0100)]
Unify cli latency display

And export usec_to_msec().

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoPass in client for thread/group status op
Jens Axboe [Mon, 5 Mar 2012 08:21:12 +0000 (09:21 +0100)]
Pass in client for thread/group status op

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoStore specific client ops in the fio_client structure
Jens Axboe [Sun, 4 Mar 2012 14:15:08 +0000 (15:15 +0100)]
Store specific client ops in the fio_client structure

We could be handling a mix of gui and cli clients from the server,
so passing. Plus this is a lot cleaner.

Also unify ETA opcode handling between clients.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoConvert net commands in the generic command handler
Jens Axboe [Sat, 3 Mar 2012 19:35:50 +0000 (20:35 +0100)]
Convert net commands in the generic command handler

Removes this from the cli/gui client, it can be handled
generically.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoAdd new net command for text logging
Jens Axboe [Sat, 3 Mar 2012 19:28:07 +0000 (20:28 +0100)]
Add new net command for text logging

Encapsulate the text in a payload, that also includes the
logging level and the time the event took place. The text
client will do as it always has done, but the gui client
can now do proper logging and knows if this is debug/info
or error messages.

No functional change in the GUI.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoAdd preferences help tooltips
Jens Axboe [Fri, 2 Mar 2012 18:44:15 +0000 (19:44 +0100)]
Add preferences help tooltips

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoAdd Preferences dialog
Jens Axboe [Fri, 2 Mar 2012 18:34:13 +0000 (19:34 +0100)]
Add Preferences dialog

Allows you to set debug options for the client.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoGUI fixes
Jens Axboe [Fri, 2 Mar 2012 18:09:31 +0000 (19:09 +0100)]
GUI fixes

- Don't use clear_ui_info() on normal quit
- Remove setting of all debug flags

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoStart of support for auto-starting the backend
Jens Axboe [Fri, 2 Mar 2012 13:27:17 +0000 (14:27 +0100)]
Start of support for auto-starting the backend

When running fio as a client only, you need the backend running
on the system. Start adding support for letting gfio auto-fork
the backend, if it isn't already running.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoClear UI/progress bar on disconnect/quit
Jens Axboe [Fri, 2 Mar 2012 13:04:30 +0000 (14:04 +0100)]
Clear UI/progress bar on disconnect/quit

And ensure that server idle loop sends run command once per
idle loop entry.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoTerminate clients when 'Disconnect' is clicked
Jens Axboe [Fri, 2 Mar 2012 12:32:04 +0000 (13:32 +0100)]
Terminate clients when 'Disconnect' is clicked

And reports errors in error bar.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoMove connection details to separate dialog box
Jens Axboe [Fri, 2 Mar 2012 12:12:04 +0000 (13:12 +0100)]
Move connection details to separate dialog box

No need to view that in the main window, we need the space.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoAdd support for client timed out ops
Jens Axboe [Fri, 2 Mar 2012 11:14:40 +0000 (12:14 +0100)]
Add support for client timed out ops

Just opens a dialog window.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoDon't update CR fields
Jens Axboe [Fri, 2 Mar 2012 10:21:13 +0000 (11:21 +0100)]
Don't update CR fields

They have been disabled for now.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoAdd more job info
Jens Axboe [Fri, 2 Mar 2012 09:25:24 +0000 (10:25 +0100)]
Add more job info

Adds a specific command to be sent when a job is received by
the backend. Helps fill out the GUI fields for job values.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoMore gui changes
Jens Axboe [Thu, 1 Mar 2012 11:01:29 +0000 (12:01 +0100)]
More gui changes

- Move progress bar into connect/start field
- Pretty up port/type boxes
- Hook better into adding clients
- Add ->quit hook for client ops
- Ensure fio_handle_clients() stays connected for GUI clients
- Stop server from repeatedly sending RUN commands

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agogfio: fix error handling in send_job_files()
Jens Axboe [Thu, 1 Mar 2012 07:01:52 +0000 (08:01 +0100)]
gfio: fix error handling in send_job_files()

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoUpdate GUI to attempt to graphically handle ETA output
Jens Axboe [Wed, 29 Feb 2012 12:45:02 +0000 (13:45 +0100)]
Update GUI to attempt to graphically handle ETA output

The whole layout will probably be changed, but for now it
demonstrates how to properly integrate with the net client
to handle the data and output it.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoAdd GUI probe support
Jens Axboe [Wed, 29 Feb 2012 10:44:53 +0000 (11:44 +0100)]
Add GUI probe support

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoMove client structure into client.h
Jens Axboe [Wed, 29 Feb 2012 10:44:34 +0000 (11:44 +0100)]
Move client structure into client.h

GUI will need it.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoVarious GUI updates
Jens Axboe [Wed, 29 Feb 2012 10:16:52 +0000 (11:16 +0100)]
Various GUI updates

- Add File menu, move job file to File -> Open
- Kill Quit button, move to File -> Quit
- Move client setup and load closer to what we want
- Use c99 style for client ops

Various little changes.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoRename job files
Jens Axboe [Wed, 29 Feb 2012 09:47:29 +0000 (10:47 +0100)]
Rename job files

The GUI would prefer job files to have a fixed extensions,
makes it much easier to navigate. So hence forth all fio
job files shall be named foo.fio.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoMerge branch 'master' into gfio
Jens Axboe [Wed, 29 Feb 2012 09:15:51 +0000 (10:15 +0100)]
Merge branch 'master' into gfio

We need the crc function namespace change.

7 years agoRename crc functions to private namespace
Jens Axboe [Wed, 29 Feb 2012 09:01:34 +0000 (10:01 +0100)]
Rename crc functions to private namespace

Apparently we overlap with some gtk (?) crc32() functions, causing
ours to be called and subsequently crashing since the arguments
aren't the same.

Move everything to a fio_ protected namespace.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoFio 2.0.5 fio-2.0.5
Jens Axboe [Tue, 28 Feb 2012 07:23:23 +0000 (08:23 +0100)]
Fio 2.0.5

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoReally fix IOPS logging
Jens Axboe [Tue, 28 Feb 2012 07:20:26 +0000 (08:20 +0100)]
Really fix IOPS logging

Commit 9602d8df had a bug where it mistakenly stored
the bytes last seen when doing an IOPS log entry, instead
of the blocks last seen.

Reported-by: Bill Hooper <whooper@micron.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoFix Makefile for gfio build
Jens Axboe [Fri, 24 Feb 2012 12:11:35 +0000 (13:11 +0100)]
Fix Makefile for gfio build

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoMove init code info libfio.c
Jens Axboe [Fri, 24 Feb 2012 11:51:31 +0000 (12:51 +0100)]
Move init code info libfio.c

Kill off endian_check.{c,h} and fio_initialization.{c,h}

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoFio 2.0.4 fio-2.0.4
Jens Axboe [Fri, 24 Feb 2012 09:16:46 +0000 (10:16 +0100)]
Fio 2.0.4

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoMerge branch 'master' into gfio
Jens Axboe [Fri, 24 Feb 2012 07:28:55 +0000 (08:28 +0100)]
Merge branch 'master' into gfio

7 years agoFix verify
Jens Axboe [Fri, 24 Feb 2012 07:26:57 +0000 (08:26 +0100)]
Fix verify

The hole commit from yesterday (d3a173a9) had a bug, where
we would checksum too much.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agofio: work on textview alignment
Stephen M. Cameron [Fri, 24 Feb 2012 07:17:32 +0000 (08:17 +0100)]
fio: work on textview alignment

Signed-off-by: Stephen M. Cameron <stephenmcameron@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agofio: work on widget alignment
Stephen M. Cameron [Fri, 24 Feb 2012 07:17:32 +0000 (08:17 +0100)]
fio: work on widget alignment

Signed-off-by: Stephen M. Cameron <stephenmcameron@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agofio: make gui capture text ops
Stephen M. Cameron [Fri, 24 Feb 2012 07:17:32 +0000 (08:17 +0100)]
fio: make gui capture text ops

Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agofio: construct options from gui
Stephen M. Cameron [Fri, 24 Feb 2012 07:17:32 +0000 (08:17 +0100)]
fio: construct options from gui

Signed-off-by: Stephen M. Cameron <stephenmcameron@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agofio: add job file to gui temporarily
Stephen M. Cameron [Fri, 24 Feb 2012 07:17:31 +0000 (08:17 +0100)]
fio: add job file to gui temporarily

Signed-off-by: Stephen M. Cameron <stephenmcameron@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agofio: add hostname, port, and address type (ipv4, ipv6, or socket) to gui
Stephen M. Cameron [Fri, 24 Feb 2012 07:17:31 +0000 (08:17 +0100)]
fio: add hostname, port, and address type (ipv4, ipv6, or socket) to gui

Signed-off-by: Stephen M. Cameron <stephenmcameron@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agofio: factor out FIO_NET_PORT
Stephen M. Cameron [Fri, 24 Feb 2012 07:17:31 +0000 (08:17 +0100)]
fio: factor out FIO_NET_PORT

Signed-off-by: Stephen M. Cameron <stephenmcameron@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agofio: Use a progress bar instead of a label
Stephen M. Cameron [Fri, 24 Feb 2012 07:17:31 +0000 (08:17 +0100)]
fio: Use a progress bar instead of a label

Signed-off-by: Stephen M. Cameron <stephenmcameron@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agofio: make gui status update in timely fashion
Stephen M. Cameron [Fri, 24 Feb 2012 07:17:31 +0000 (08:17 +0100)]
fio: make gui status update in timely fashion

Needs inexplicable special gtk/gdk magic code for some reason.
(Learned this by hard won experience on Word War vi.)

Signed-off-by: Stephen M. Cameron <stephenmcameron@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agofio: make the gui display thread status
Stephen M. Cameron [Fri, 24 Feb 2012 07:17:31 +0000 (08:17 +0100)]
fio: make the gui display thread status

Signed-off-by: Stephen M. Cameron <stephenmcameron@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agofio: capture thread status display
Stephen M. Cameron [Fri, 24 Feb 2012 07:17:31 +0000 (08:17 +0100)]
fio: capture thread status display

The thread status display uses printf to stdout.
Need a way to capture it for the gui.

Signed-off-by: Stephen M. Cameron <stephenmcameron@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agofio: make gui actually do something
Stephen M. Cameron [Fri, 24 Feb 2012 07:17:31 +0000 (08:17 +0100)]
fio: make gui actually do something

Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agofio: add placeholder gui client ops
Stephen M. Cameron [Fri, 24 Feb 2012 07:17:31 +0000 (08:17 +0100)]
fio: add placeholder gui client ops

Signed-off-by: Stephen M. Cameron <stephenmcameron@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agofio: link fio code with gui code
Stephen M. Cameron [Fri, 24 Feb 2012 07:17:31 +0000 (08:17 +0100)]
fio: link fio code with gui code

Signed-off-by: Stephen M. Cameron <stephenmcameron@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agofio: factor out fio initialization code
Stephen M. Cameron [Fri, 24 Feb 2012 07:17:31 +0000 (08:17 +0100)]
fio: factor out fio initialization code

Signed-off-by: Stephen M. Cameron <stephenmcameron@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agofio: factor out endian_check
Stephen M. Cameron [Fri, 24 Feb 2012 07:17:31 +0000 (08:17 +0100)]
fio: factor out endian_check

Signed-off-by: Stephen M. Cameron <stephenmcameron@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agofio: add send job and quit buttons to gui
Stephen M. Cameron [Fri, 24 Feb 2012 07:17:30 +0000 (08:17 +0100)]
fio: add send job and quit buttons to gui

Signed-off-by: Stephen M. Cameron <stephenmcameron@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agofio: add minimal gui program
Stephen M. Cameron [Fri, 24 Feb 2012 07:17:30 +0000 (08:17 +0100)]
fio: add minimal gui program

Signed-off-by: Stephen M. Cameron <stephenmcameron@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agofio: make client operations pluggable
Stephen M. Cameron [Fri, 24 Feb 2012 07:17:30 +0000 (08:17 +0100)]
fio: make client operations pluggable

Signed-off-by: Stephen M. Cameron <stephenmcameron@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoclient: exit if no jobs were sent and client is idle
Jens Axboe [Thu, 23 Feb 2012 19:56:12 +0000 (20:56 +0100)]
client: exit if no jobs were sent and client is idle

If we invoke the client without arguments, it gets the probe
response and then waits for further response from the server.
But if no command line or job files were sent, the server
is idle. In that case, just quit.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoverify: put all header verification in one place
Jens Axboe [Thu, 23 Feb 2012 09:31:07 +0000 (10:31 +0100)]
verify: put all header verification in one place

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoFix // comment
Jens Axboe [Thu, 23 Feb 2012 07:35:04 +0000 (08:35 +0100)]
Fix // comment

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoRemove holes in verify_header structure
Jens Axboe [Thu, 23 Feb 2012 07:23:18 +0000 (08:23 +0100)]
Remove holes in verify_header structure

Shrink the magic and verify_type members, and reorder so that
it packs nicely. Incompatible change, write workloads must be
re-run.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoImplement sigaction for Windows.
Bruce Cran [Wed, 22 Feb 2012 19:56:22 +0000 (19:56 +0000)]
Implement sigaction for Windows.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agostat() doesn't work with devices on Windows, so move check for '\\.\' earlier.
Bruce Cran [Wed, 22 Feb 2012 17:55:16 +0000 (17:55 +0000)]
stat() doesn't work with devices on Windows, so move check for '\\.\' earlier.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoUse crc32c for the verify_header checksum
Jens Axboe [Wed, 22 Feb 2012 19:29:42 +0000 (20:29 +0100)]
Use crc32c for the verify_header checksum

It's the only hardware assisted crypto we have, and it's
widely available in any recent Intel CPU.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoAuto-detect whether to use hw assisted crc32c
Jens Axboe [Wed, 22 Feb 2012 19:28:17 +0000 (20:28 +0100)]
Auto-detect whether to use hw assisted crc32c

Little point in separating the two. If the hardware assisted
crypto is available, always use it.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoAdd checksum to verify_header
Jens Axboe [Wed, 22 Feb 2012 19:11:57 +0000 (20:11 +0100)]
Add checksum to verify_header

Currently we don't know if the verify_header itself is
valid when pulled off a disk. While it will fail verify
if it is, fio might then confuse the 'expected' and
'received' data since it re-generates the corrupted
crc with the seed stored. But if the seed is corrupt,
then we fail.

So checksum the verify header, so that we know for a fact
whether the header is valid or not.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoflow: Fixing uninitialized variable
Daniel Ehrenberg [Wed, 22 Feb 2012 10:48:19 +0000 (11:48 +0100)]
flow: Fixing uninitialized variable

In the flow initialization code path, there was an uninitialized
variable that led to memory corruption in certain cases. This
patch should initialize the variable properly.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoFix tabbing and comment characters in Windows code.
Bruce Cran [Mon, 20 Feb 2012 20:03:48 +0000 (21:03 +0100)]
Fix tabbing and comment characters in Windows code.

Update syslog.h with proper flag values.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
7 years agoRemove unused Windows version.h and version.rc files.
Bruce Cran [Mon, 20 Feb 2012 20:01:50 +0000 (21:01 +0100)]
Remove unused Windows version.h and version.rc files.

Signed-off-by: Jens Axboe <axboe@kernel.dk>