From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sebastien Vauban Newsgroups: gmane.emacs.bugs Subject: bug#20843: 24.5; Profiler error: "Invalid sampling interval" Date: Mon, 22 Jun 2015 10:00:04 +0200 Organization: Sebastien Vauban Message-ID: <86y4jckwaj.fsf@example.com> References: <83k2v1l7g4.fsf@gnu.org> <5585B8C4.1050204@cornell.edu> <83r3p6i4b1.fsf@gnu.org> <5585DF69.7090008@cornell.edu> <83oak9hzzs.fsf@gnu.org> <558737F7.4080709@cornell.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1434960095 9697 80.91.229.3 (22 Jun 2015 08:01:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Jun 2015 08:01:35 +0000 (UTC) Cc: 20843-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org To: Ken Brown Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Mon Jun 22 10:01:26 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z6wfV-000326-8p for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Jun 2015 10:01:25 +0200 Original-Received: from localhost ([::1]:38550 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6wfU-0007rI-Lx for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Jun 2015 04:01:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54843) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6wfD-0007UL-Qy for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Mon, 22 Jun 2015 04:01:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z6wf9-0005by-HK for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Mon, 22 Jun 2015 04:01:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52385) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6wf9-0005bu-Di for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Mon, 22 Jun 2015 04:01:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z6wf8-0000WH-TG for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Mon, 22 Jun 2015 04:01:03 -0400 X-Loop: help-debbugs-mXXj517/zsQ@public.gmane.org Resent-From: Sebastien Vauban Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs-mXXj517/zsQ@public.gmane.org Resent-Date: Mon, 22 Jun 2015 08:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs-mXXj517/zsQ@public.gmane.org X-GNU-PR-Message: followup 20843 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20843-submit-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org id=B20843.14349600241946 (code B ref 20843); Mon, 22 Jun 2015 08:01:02 +0000 Original-Received: (at 20843) by debbugs.gnu.org; 22 Jun 2015 08:00:24 +0000 Original-Received: from localhost ([127.0.0.1]:53831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z6weV-0000VJ-7G for submit-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org; Mon, 22 Jun 2015 04:00:23 -0400 Original-Received: from dd5e0353a.access.telenet.be ([213.224.53.58]:46842 helo=mail.missioncriticalit.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z6weR-0000UH-6d for 20843-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org; Mon, 22 Jun 2015 04:00:20 -0400 Original-Received: from MUNDANEUM (unknown [10.10.10.51]) by mail.missioncriticalit.com (Postfix) with ESMTPS id 6D6E0500717; Mon, 22 Jun 2015 10:00:12 +0200 (CEST) In-Reply-To: <558737F7.4080709-HmMyXyqgL2CVc3sceRu5cw@public.gmane.org> (Ken Brown's message of "Sun, 21 Jun 2015 18:17:27 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (windows-nt) X-Url: Under construction... X-Archive: encrypt X-BeenThere: debbugs-submit-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs-mXXj517/zsQ@public.gmane.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.bugs:104210 Archived-At: Ken Brown writes: > On 6/21/2015 10:56 AM, Eli Zaretskii wrote: >>> Date: Sat, 20 Jun 2015 17:47:21 -0400 >>> From: Ken Brown >>> CC: sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org, 20843-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org >>> >>>> Then I guess the configure-time test for setitimer should also test >>>> for ITIMER_PROF. >>> >>> I'd be glad to give this a try, but I don't have any experience writing >>> autoconf macros. Is there a standard macro to test whether a function >>> accepts a particular argument? If not, can you (or anyone) point me to >>> an example that I can imitate? >> >> Actually, perhaps I misunderstood you: are you saying that Cygwin does >> have ITIMER_PROF defined in the appropriate header, but when setitimer >> is called with it, it always fails? > > Yes. > >> If so, we cannot test this at >> configure time, because it means we will have to run a program, which >> is not a good idea. >> >> So in that case, I think we should simply disable the CPU profiler on >> Cygwin using "#ifndef __CYGWIN__" or some such. > > Done as commit 5fac0de. > >>>> Also, the diagnostics should be improved, as the >>>> wording is misleading in that case. >>> >>> As it stands, profiler-cpu-start reports "Invalid sampling interval" >>> whenever setup_cpu_timer fails to start the timer, regardless of the >>> reason. I'll try to improve this. >> >> Yes, please. For me to understand, does this mean we never will be able to start the profiler under Cygwin Emacs?