X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=profile.c;h=506462eb85373d795f745b0a4e479bd9a1937f1e;hp=855dde3e6d1efb2c316d28265be80754d604283b;hb=d72be5454c8c5378f16804ff9b8d1afe8729a380;hpb=58c55ba02aca24ed30beb343fcb1dc3df4667389;ds=sidebyside diff --git a/profile.c b/profile.c index 855dde3e..506462eb 100644 --- a/profile.c +++ b/profile.c @@ -93,8 +93,10 @@ void profile_add_hooks(struct thread_data *td) if (!ops) return; - if (ops->io_ops) + if (ops->io_ops) { td->prof_io_ops = *ops->io_ops; + td->flags |= TD_F_PROFILE_OPS; + } } int profile_td_init(struct thread_data *td)