From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#20843: 24.5; Profiler error: "Invalid sampling interval" Date: Sun, 21 Jun 2015 17:56:07 +0300 Message-ID: <83oak9hzzs.fsf@gnu.org> References: <83k2v1l7g4.fsf@gnu.org> <5585B8C4.1050204@cornell.edu> <83r3p6i4b1.fsf@gnu.org> <5585DF69.7090008@cornell.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1434898643 7483 80.91.229.3 (21 Jun 2015 14:57:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 21 Jun 2015 14:57:23 +0000 (UTC) Cc: sva-news@mygooglest.com, 20843@debbugs.gnu.org To: Ken Brown Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 21 16:57:11 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 1Z6ggJ-00016Q-2K for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Jun 2015 16:57:11 +0200 Original-Received: from localhost ([::1]:36483 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6ggI-0004Y7-0f for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Jun 2015 10:57:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51726) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6ggD-0004X6-Tq for bug-gnu-emacs@gnu.org; Sun, 21 Jun 2015 10:57:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z6ggA-0002Ye-N2 for bug-gnu-emacs@gnu.org; Sun, 21 Jun 2015 10:57:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52027) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6ggA-0002Ya-Jr for bug-gnu-emacs@gnu.org; Sun, 21 Jun 2015 10:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z6ggA-0000I6-Eb for bug-gnu-emacs@gnu.org; Sun, 21 Jun 2015 10:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Jun 2015 14:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20843 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20843-submit@debbugs.gnu.org id=B20843.14348985881076 (code B ref 20843); Sun, 21 Jun 2015 14:57:02 +0000 Original-Received: (at 20843) by debbugs.gnu.org; 21 Jun 2015 14:56:28 +0000 Original-Received: from localhost ([127.0.0.1]:53473 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z6gfb-0000HH-GK for submit@debbugs.gnu.org; Sun, 21 Jun 2015 10:56:27 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:62889) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z6gfY-0000H3-NX for 20843@debbugs.gnu.org; Sun, 21 Jun 2015 10:56:25 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NQA00F00UK02200@a-mtaout23.012.net.il> for 20843@debbugs.gnu.org; Sun, 21 Jun 2015 17:56:18 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NQA00FQ2UTT0C30@a-mtaout23.012.net.il>; Sun, 21 Jun 2015 17:56:17 +0300 (IDT) In-reply-to: <5585DF69.7090008@cornell.edu> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.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@gnu.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@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:104174 Archived-At: > Date: Sat, 20 Jun 2015 17:47:21 -0400 > From: Ken Brown > CC: sva-news@mygooglest.com, 20843@debbugs.gnu.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? 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. > > 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. Thanks.