X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=lib%2Flibrte_jobstats%2Frte_jobstats.h;h=b3686030e820b6d661ba594a72740600c88d48fa;hb=89ba9195054b2fb6261d98660bb3d6b752fa8e52;hp=de6a89adb3165b58a4f29a7f091be7552a6627c0;hpb=597b0f74e209b4cebb0602df69385b0c33b0dfa3;p=dpdk.git diff --git a/lib/librte_jobstats/rte_jobstats.h b/lib/librte_jobstats/rte_jobstats.h index de6a89adb3..b3686030e8 100644 --- a/lib/librte_jobstats/rte_jobstats.h +++ b/lib/librte_jobstats/rte_jobstats.h @@ -85,7 +85,7 @@ struct rte_jobstats { /**< Minimum execute time. */ uint64_t max_exec_time; - /**< Minimum execute time. */ + /**< Maximum execute time. */ uint64_t exec_cnt; /**< Execute count. */ @@ -236,6 +236,20 @@ rte_jobstats_set_target(struct rte_jobstats *job, int64_t target); int rte_jobstats_start(struct rte_jobstats_context *ctx, struct rte_jobstats *job); +/** + * Mark that *job* finished its execution, but time of this work will be skipped + * and added to management time. + * + * @param job + * Job object. + * + * @return + * 0 on success + * -EINVAL if job is NULL or job was not started (it have no context). + */ +int +rte_jobstats_abort(struct rte_jobstats *job); + /** * Mark that *job* finished its execution. Context in which it was executing * will receive stat update. After this function call *job* object is ready to