diff options
author | Alex Elder <[email protected]> | 2012-10-25 23:34:41 -0500 |
---|---|---|
committer | Alex Elder <[email protected]> | 2012-10-30 08:34:29 -0500 |
commit | f28e565a1b15eef62618db4011d9e320089a4214 (patch) | |
tree | ed4f44cbbc4736eb2f23d3b8f717a944c56056d2 /tools/perf/util/scripting-engines/trace-event-perl.c | |
parent | e5c35534042f4b5957a32bba651222c91247beba (diff) |
rbd: remove options args from rbd_add_parse_args()
They "options" argument to rbd_add_parse_args() (and it's partner
options_size) is now only needed within the function, so there's no
need to have the caller allocate and pass the options buffer. Just
allocate the options buffer within the function using dup_token().
Also distinguish between failures due to failed memory allocation
and failing because a required argument was missing.
Signed-off-by: Alex Elder <[email protected]>
Reviewed-by: Josh Durgin <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions