diff options
| author | Ken Raeburn <raeburn@mit.edu> | 2005-03-13 07:34:23 +0000 |
|---|---|---|
| committer | Ken Raeburn <raeburn@mit.edu> | 2005-03-13 07:34:23 +0000 |
| commit | cc823ff1f9ccab035fed4ff424917390ef4abe5b (patch) | |
| tree | 25696dd3f948f6e7eb7be69498ed2c24e499422b /src/util/profile/ChangeLog | |
| parent | e367185cfec3c867f9b99602354308d4efa26531 (diff) | |
| download | krb5-cc823ff1f9ccab035fed4ff424917390ef4abe5b.tar.gz krb5-cc823ff1f9ccab035fed4ff424917390ef4abe5b.tar.xz krb5-cc823ff1f9ccab035fed4ff424917390ef4abe5b.zip | |
profile library should check high-resolution timestamps if available
With the current profile code, it's possible for a file to be read when
partially written, with the writing of the new file contents being completed
within the same 1-second clock value, causing the profile code not to re-read
the contents. Using a higher-resolution timestamp, available on many systems
now, should help reduce that window. (Checking file sizes should also,
consider doing that separately.)
* configure.in: Check struct stat for fields st_mtimensec,
st_mtimespec.tv_nsec, and st_mtim.tv_usec.
* prof_file.c (profile_update_file_data): If one of them is found, use it as
the fractional part of the timestamp. Do re-read the file if the fractional
parts don't match.
* prof_int.h (struct _prf_data_t): Add new field frac_ts.
ticket: new
status: open
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17121 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util/profile/ChangeLog')
| -rw-r--r-- | src/util/profile/ChangeLog | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/util/profile/ChangeLog b/src/util/profile/ChangeLog index 8208db91c..4063b1722 100644 --- a/src/util/profile/ChangeLog +++ b/src/util/profile/ChangeLog @@ -1,3 +1,12 @@ +2005-03-13 Ken Raeburn <raeburn@mit.edu> + + * configure.in: Check struct stat for fields st_mtimensec, + st_mtimespec.tv_nsec, and st_mtim.tv_usec. + * prof_file.c (profile_update_file_data): If one of them is + found, use it as the fractional part of the timestamp. Do + re-read the file if the fractional parts don't match. + * prof_int.h (struct _prf_data_t): Add new field frac_ts. + 2005-03-03 Ken Raeburn <raeburn@mit.edu> * prof_tree.c (profile_node_iterator): After checking skip_num |
