summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/profil.c
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-04-28 20:10:54 +0000
committerChristopher Faylor <me@cgf.cx>2003-04-28 20:10:54 +0000
commit6ef342e4603b75fa789004db934c0daea53ae132 (patch)
tree371478341ba7b6b583221f2336ad2c5299082386 /winsup/cygwin/profil.c
parenteae4b2b0bc87e9de4c56fda110a9d2813cf0ddce (diff)
downloadcygnal-6ef342e4603b75fa789004db934c0daea53ae132.tar.gz
cygnal-6ef342e4603b75fa789004db934c0daea53ae132.tar.bz2
cygnal-6ef342e4603b75fa789004db934c0daea53ae132.zip
* profil.h (PROFADDR): Prevent overflow when text segments are larger than
256k. * profil.c (profthr_func): Raise thread priority for more accurate sampling. * path.cc (hash_path_name): Use ino_t as type.
Diffstat (limited to 'winsup/cygwin/profil.c')
-rw-r--r--winsup/cygwin/profil.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/profil.c b/winsup/cygwin/profil.c
index 7be0839b2..cbfffc1b2 100644
--- a/winsup/cygwin/profil.c
+++ b/winsup/cygwin/profil.c
@@ -62,6 +62,8 @@ profthr_func (LPVOID arg)
struct profinfo *p = (struct profinfo *) arg;
u_long pc, idx;
+ SetThreadPriority(p->profthr, THREAD_PRIORITY_TIME_CRITICAL);
+
for (;;)
{
pc = (u_long) get_thrpc (p->targthr);