From nobody Fri Mar 24 00:09:40 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 4PjMz66d84z40mD8 for ; Fri, 24 Mar 2023 00:09:54 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-yw1-x1131.google.com (mail-yw1-x1131.google.com [IPv6:2607:f8b0:4864:20::1131]) (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 4PjMz65m7sz3L28 for ; Fri, 24 Mar 2023 00:09:54 +0000 (UTC) (envelope-from tomek@cedro.info) Authentication-Results: mx1.freebsd.org; none Received: by mail-yw1-x1131.google.com with SMTP id 00721157ae682-5416698e889so4961757b3.2 for ; Thu, 23 Mar 2023 17:09:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; t=1679616593; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=F5wPHeoLpyvb1IJhgZ8TqwXoB7/COtJLE8m4MXWi6f0=; b=NYwnGHt79fxbC0Ke7Dm9/Vu2S8sF5LZC6SnWSHizHI93D0z3ZkTMjBQstBgv0sWNwr bxMROs2/OwiR0NxF6ii+l+FdRy+MNN6H59iI0IqNn45IPrJpkM80AF9xSVyKgaQT9GPW adTwQmEKeB6/VQ56gn3chCovwau8YqIH/DmAFxMkEtBUKSeFKVQEyPx0ug0oL1Ulmrmm qWhRiJZQ/e9rioNq3qa5o7fA64z6PLPqtjwugnc1O+/3TRwKjpoQdX8iPEBONxMQLNiL oBiuq/zIz9WgWBF8X2OMb7f1FvK7XrXmQBALRiIV4iwq1X64yKzgvIMC9oNNuH51tPs8 u+YA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679616593; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=F5wPHeoLpyvb1IJhgZ8TqwXoB7/COtJLE8m4MXWi6f0=; b=wdwSH/6qfNbt32Wy/T4XGAIj0P51A0IodRHYXJxHz7R1fWlfukWArtrbwnFf3vuqmt ncUxr9KVArObCCjrI5Jg4hWL16AG9tmO/Axnr8tSThIez/5ZjaY+55odnhzsT43fsQHm K9nZyRE9pJrrYg/8XzStEkVPki/c0czuModAaYZ+WSb0ZvdG5VHRsgvZ7dmnq9GDKUJQ acSYfRdHn96uRyjStHATcjZ8WJ9b+AjB55cOgT+Zjdq8JHxHSb9RT+95XrS0Y88cu1Pd CnUw3lQryeJMb7ywW0pW/15dmVXEFruA1E3wb1kZqhLGxUsWwrbsNJfO4/nsCJ1RuSDW SkDQ== X-Gm-Message-State: AAQBX9duzOff76Bu9dG9HhZCIXpP/ABXzmkvuiGr342KIpbSANc4VMzj eMaIRuyCbhjITLc4FNpkZa0snC8uYp0wyxOt3Zs= X-Google-Smtp-Source: AKy350Z8QqYa6HvFzDZgvy/+veAtdqRmm7LbxMsiaS3j5cRQOtViWIa9qLWe0rkTgtEREDFdc3Zw/Q== X-Received: by 2002:a0d:e211:0:b0:541:89a5:be02 with SMTP id l17-20020a0de211000000b0054189a5be02mr402509ywe.24.1679616593101; Thu, 23 Mar 2023 17:09:53 -0700 (PDT) Received: from mail-yb1-f175.google.com (mail-yb1-f175.google.com. [209.85.219.175]) by smtp.gmail.com with ESMTPSA id q9-20020a814309000000b00545a08184f4sm121932ywa.132.2023.03.23.17.09.52 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 Mar 2023 17:09:52 -0700 (PDT) Received: by mail-yb1-f175.google.com with SMTP id p204so331596ybc.12 for ; Thu, 23 Mar 2023 17:09:52 -0700 (PDT) X-Received: by 2002:a25:2f84:0:b0:b6e:d788:eba0 with SMTP id v126-20020a252f84000000b00b6ed788eba0mr220207ybv.11.1679616592295; Thu, 23 Mar 2023 17:09:52 -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 References: <20230323204533.z3vd3tk37hgbludi@topanga> In-Reply-To: <20230323204533.z3vd3tk37hgbludi@topanga> From: Tomek CEDRO Date: Fri, 24 Mar 2023 01:09:40 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: userland profiler trace with debug symbols To: Pete Wright Cc: FreeBSD Questions Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4PjMz65m7sz3L28 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Thu, Mar 23, 2023 at 9:45=E2=80=AFPM Pete Wright wrote: > > On Thu, Mar 23, 2023 at 12:07:28AM +0100, Tomek CEDRO wrote: > > 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? :-) > > you can probably supply similar info using dtrace(1). there is also dwat= ch(1) > which is a handy script that pulls lots of useful info via dtrace, but in= a > more user friendly way. > > -pete Thank you Pete! I also found dtrace.. but it looks kind of black magic for a newcomer :-P I found only this reference with some examples: https://www.oracle.com/application-development/technologies/solarisstudio-d= ocumentation-dtrace-studio.html Do you know a good reference / manual / tutorial / book with exapmles to learn dtrace? :-) :-) --=20 CeDeROM, SQ7MHZ, http://www.tomek.cedro.info