X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=EulpHedzO9gQHwRGLn9KJyQi/mUmYTIPVpxTdVYFc8aXW/lat3m4o qXdYsa/aytf1tQiYwQIOgPQNRcnDLUpYBOTX+oUbVvOmQfu9oeWnVO5QmYsf95RL EpmUql5mHZsSNLenbNDmbJKBqBFtD1SH1fVlt5bhVJogdvAcW1fqdg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=z/vcrsdYfK+qYLVVWJ4SQwg+7jI=; b=EO7Us1K7cWsKp5MJ5EyGtlAallMt xUGGP3CtopJhZuDGsB/fCjrIyD5+krVDdLKz89NUXK4Dv/AOEOtbCzhBmg/Nfbwx Yr0IBXvpxFqccv1hTPfZwaKqZAR3zHQV610jzrEJMq2I36zQX2HcWFVxpgseS8Vv nbKYdpAIUkLmMD4= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 X-HELO: calimero.vinschen.de Date: Mon, 22 Jun 2015 15:25:41 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Support for ITIMER_PROF? Message-ID: <20150622132541.GA21402@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <5587FA08 DOT 8080404 AT cornell DOT edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="sdtB3X0nJg68CQEu" Content-Disposition: inline In-Reply-To: <5587FA08.8080404@cornell.edu> User-Agent: Mutt/1.5.23 (2014-03-12) --sdtB3X0nJg68CQEu Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Jun 22 08:05, Ken Brown wrote: > According to the Cygwin API documentation > (https://cygwin.com/cygwin-api/std-notes.html), "getitimer and setitimer > only support ITIMER_REAL for now." I'm wondering whether there's any cha= nce > that support for ITIMER_PROF might be added. I have no idea what the > obstacles are. >=20 > My reason for asking is that emacs has a CPU profiling function, which > doesn't work on Cygwin because it relies on ITIMER_PROF. (There's an > alternative implementation, but it requires timer_getoverrun, also not > available in Cygwin.) Both very tricky. Given the description of timer_getoverrun and how this stuff is implemented in Cygwin, you might get away with #ifdef __CYGWIN__ #define timer_getoverrun(x) 0 #endif indepedently of using SIGEV_SIGNAL or SIGEV_THREAD. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --sdtB3X0nJg68CQEu Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJViAzVAAoJEPU2Bp2uRE+gkFQP/Rou7B27ozEQu/I8Et1TxmB9 suPeSaKhCgdex87dcCeCMxT7Yt7CYM7wlxurgg4Y2g+FdgdYMZkHKeQ2bivTntGO 5GRmFTGANTs2ucLqgdGaYp86hn8p78WhAOz2wriG4fFtLo2XIcO95OqRA6ObtGwp 5aAcQlWYVR+kAkXsZZGt5unmm4+3JRVUmW6r8B1eylAqWGz0zrVahhjQu1I5wJC0 ujW3xF9BUiJg3qg9nYVphqZuBiP0+d3HUq1NvK9SG2Zi6O8vu+XwrD4Y7dnK7Y9m lCARlUqY9UF8lCThgK+DQ5pMOjP81v+Fo0jIjZ5MU3hEGBwLwIDYp/UOh5PW2UWD T72LkMziY/Eud/lCOHZ3Vf5fHS14FdNhKtCpORNdxDhNW8BLKE14lpY2owr17hOs F3GSmNpqvmxoaTi3sfHugMjKE1pbi0pg2lHgo40fGoehAK+AqcG5QZMErOHVEu87 Slu492YYgVxpBQ/z36rSQ/3KeQgWeKUkFfpnT65QW+toYlKd/dYB+NL0zkG1MPn2 zmsdFIoZd2jBD2/bEcf3QMJIrtiBYC8sdNfVgxHWDJFPOK/ePjyJ3K9gzMoSdxh0 lHEKuckUQBP5DmAcB8f5nXsBHcEuXn6eY/tKr2K8f5KwEQqq18evDq7aPZl70pAY qUj6CK1CerXuYOv5BUZO =zzT7 -----END PGP SIGNATURE----- --sdtB3X0nJg68CQEu--