summaryrefslogtreecommitdiff
path: root/cconv.c
diff options
context:
space:
mode:
authorAndrey Kuzmin <andrey.v.kuzmin@gmail.com>2015-12-22 09:21:25 -0700
committerJens Axboe <axboe@fb.com>2015-12-22 09:21:25 -0700
commit9cc8cb91d355d7e47d5b930b352087ec71f85f85 (patch)
tree3bd0e2fa8123e6c604784fe61b4300278dc1d0e8 /cconv.c
parentb5f4ef37543b46f9ef44cabf691a92d6592fb286 (diff)
Add support for waiting for other jobs by name
We have stonewall to barrier against previous jobs before a new job runs. This adds support for 'wait_for', which allows the user to explicitly wait for a given job before starting. Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'cconv.c')
-rw-r--r--cconv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cconv.c b/cconv.c
index a476aad..6d8d0b3 100644
--- a/cconv.c
+++ b/cconv.c
@@ -25,6 +25,7 @@ static void free_thread_options_to_cpu(struct thread_options *o)
{
free(o->description);
free(o->name);
+ free(o->wait_for);
free(o->directory);
free(o->filename);
free(o->filename_format);
@@ -54,6 +55,7 @@ void convert_thread_options_to_cpu(struct thread_options *o,
string_to_cpu(&o->description, top->description);
string_to_cpu(&o->name, top->name);
+ string_to_cpu(&o->wait_for, top->wait_for);
string_to_cpu(&o->directory, top->directory);
string_to_cpu(&o->filename, top->filename);
string_to_cpu(&o->filename_format, top->filename_format);
@@ -276,6 +278,7 @@ void convert_thread_options_to_net(struct thread_options_pack *top,
string_to_net(top->description, o->description);
string_to_net(top->name, o->name);
+ string_to_net(top->wait_for, o->wait_for);
string_to_net(top->directory, o->directory);
string_to_net(top->filename, o->filename);
string_to_net(top->filename_format, o->filename_format);