Skip to content

Commit

Permalink
Intraprocess pattern recognition bug fix
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Wang <[email protected]>
  • Loading branch information
wangvsa committed Jul 23, 2024
1 parent 3c2261e commit 250e3f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/recorder-pattern-recognition.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ off64_t iopr_intraprocess(const char *func, off64_t offset) {
HASH_ADD_STR(func2offset_map, func, entry);
return offset;
} else {
off64_t delta = offset - entry->offset;
entry->offset = offset;
return offset - entry->offset;
return delta;
}
}

Expand Down

0 comments on commit 250e3f9

Please sign in to comment.