From nobody Wed Mar 22 23:07:28 2023 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Phkdr0l26z41RCf for ; Wed, 22 Mar 2023 23:07:44 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Phkdp5mNZz3tS8 for ; Wed, 22 Mar 2023 23:07:42 +0000 (UTC) (envelope-from tomek@cedro.info) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=O8WBsP4o; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2607:f8b0:4864:20::834) smtp.mailfrom=tomek@cedro.info; dmarc=none Received: by mail-qt1-x834.google.com with SMTP id x1so24727766qtr.7 for ; Wed, 22 Mar 2023 16:07:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; t=1679526461; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=YvUz5UECbl6HImgrCyiteH+ZHuQQpT8swKZFBMyXJ8g=; b=O8WBsP4ocVGL6UaZyi4JXXXk2zCPZofVyQ6+091oEJYOKS16+JK19Pb4uk0ZW8Du+i JyRS1yGUjb6yTjup94WeYJCOm4NPMBOq/LcWJTEN9LuegObUMGZDBPfzOExpWw8stNxW ohIyIpuPrYOTHZpxQWkQmK4MlP5fLl/8fST+wl8ULCkBPJmIHI5HwIsH+1LEm9VEnq0X yJTQKImNLof8KPlpxrdW+Bt/hZGqVP92XeGqYggj7BLGX8mXfE9bfBzKC0D8S5173oR4 GvY1BDU07JPQf3XXXn0iojd7zX6xD1oaVacwU1ORwtoF3AlP5DXKAc25ShCIdlAXq4Ju Ntag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679526461; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=YvUz5UECbl6HImgrCyiteH+ZHuQQpT8swKZFBMyXJ8g=; b=Kmu3PnMY61mo7MFnj0zOs+kRUuMfh1Ko7m0NVZZYSZB0f7Yblgg4NJabQ5Qk6QErNM RtkZmwQQ0QvBxkLLuA6w64mMggIOFJab9HbJwFvZHyXbf1kqtUKiNbszkk7Pys6jTcI/ Jsf2S5mptg2s7faOZK/Km1aGkJpd2XMdjDeF+QwuWVA0LLZtwlc0I8M1BUyj0qU3LVOC YBWTWR1oa6amaxoGPPH1cTkkwPwwtl4M7rY3xNijvlfbPZzs/fTfRCmvEZFKha3NqvI3 SxyL3Ykbs5y2ALQVFr9ud5FVzHTAJy3vfNO8MPdC60NsGdJVdm2nUX9DLQ/GTnOlapwV WCzQ== X-Gm-Message-State: AO0yUKU4MHIuSBoTc61z0s3k9+g/vzE0GbwqyY1ubf5Plw9mXkVlXfYv YZe6w1/LsBcEbOadXvHgX8DKxsAhSny1f6+fCoI= X-Google-Smtp-Source: AK7set983dBs3ML0zyCH6YGbudkSFufLgA2JQ62HGuQ5HEvarqjLsfG6lJnGyJcsWOkM277CIR5t9Q== X-Received: by 2002:a05:622a:b:b0:3d3:fe29:1caf with SMTP id x11-20020a05622a000b00b003d3fe291cafmr9624825qtw.0.1679526460934; Wed, 22 Mar 2023 16:07:40 -0700 (PDT) Received: from mail-yb1-f177.google.com (mail-yb1-f177.google.com. [209.85.219.177]) by smtp.gmail.com with ESMTPSA id jr28-20020a05622a801c00b003bd0f0b26b0sm10812491qtb.77.2023.03.22.16.07.40 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Mar 2023 16:07:40 -0700 (PDT) Received: by mail-yb1-f177.google.com with SMTP id e71so22944948ybc.0 for ; Wed, 22 Mar 2023 16:07:40 -0700 (PDT) X-Received: by 2002:a05:6902:70a:b0:b21:5fb4:c6e6 with SMTP id k10-20020a056902070a00b00b215fb4c6e6mr882592ybt.11.1679526460155; Wed, 22 Mar 2023 16:07:40 -0700 (PDT) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 From: Tomek CEDRO Date: Thu, 23 Mar 2023 00:07:28 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: userland profiler trace with debug symbols To: FreeBSD Questions Mailing List Content-Type: text/plain; charset="UTF-8" X-Spamd-Result: default: False [-3.30 / 15.00]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::834:from,209.85.219.177:received]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_NA(0.00)[no SPF record]; DKIM_TRACE(0.00)[cedro.info:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; TO_DN_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_LAST(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[cedro.info]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4Phkdp5mNZz3tS8 X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N Hello world :-) I have found and reported a bug in KiCAD 7 where dialogs seems to be broken [1]. One of the upstream developers asked me to create a "profiler trace with debug symbols" to pinpoint the issue. Here is an example use on Linux with perf [2]: perf record --debuginfod --call-graph dwarf -F 999 -g eeschema Do we have this kind of utility on FreeBSD? :-) Any hints appreciated :-) Tomek [1] https://gitlab.com/kicad/code/kicad/-/issues/14380#note_1324787675 [2] https://perf.wiki.kernel.org/index.php/Main_Page -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info