From owner-freebsd-hackers@freebsd.org Fri Aug 30 10:54:55 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8E6F0CAD85; Fri, 30 Aug 2019 10:54:55 +0000 (UTC) (envelope-from shreyankfbsd@gmail.com) Received: from mail-yw1-xc29.google.com (mail-yw1-xc29.google.com [IPv6:2607:f8b0:4864:20::c29]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46KbwG4W1tz402s; Fri, 30 Aug 2019 10:54:54 +0000 (UTC) (envelope-from shreyankfbsd@gmail.com) Received: by mail-yw1-xc29.google.com with SMTP id 129so1600117ywb.8; Fri, 30 Aug 2019 03:54:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=rG84iHW20UnQWjFBxnIGlbit+94wIaS18Dg1CC5iWQQ=; b=qxPeUuZKVdBA5FQ7N5T5c0Q2miMlDe9UVNsgdJex/bdOHHVWyDkr53iPvClK3YqaOV 5UD40Pgqyf9Y2ZJePudAfTH5sh6aH8ejetFvftPXwBOVpQ4Ew9p8hEk7bkgziiIAkEnF UB4Q/m81WP791kD+lZ81LPit7ceUpLrduXiXwUbaueWx9wx9zRuQ0IpEn0WMY+1bfqi9 KQA6bX5U+FDiSkd1JQbrVCEJuIcxbZFxDrK4vM+Q9PYf06qLGBWSyrGZ6JQepK87o1CI JdMlyThv4Op8ix/h0i419oadQUnyhGLqCxIVzPLztGjjbJYl1Y2/8K8HjyZqXRMTsJhM i4PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=rG84iHW20UnQWjFBxnIGlbit+94wIaS18Dg1CC5iWQQ=; b=J5DhyMTgNIYasVShbCGxkXqoQp5f1kwYbeD5EmWyWS1WPX6uBJPV1ZFKiAKLWXHcFX UETITjs5DOD0RQbnQp9ZajPOSDkSgOB6xqUHpTotCtSWpnqI/53rGUa7wnRH/DFSLi0T iUsz/p5mtkPuSjPbgWYhjKoSS9obxWhtlMvH8OvBGwjTSLcqocDeJizJTqmsae0ZhK4l D3CnxqwhYGfVTzLHlK82QTuv0+ASojwOfNHIZpI9zOs8Tf+QTx1yxQQELnGrQvs59F0q jD9YDF4CF++0EozDPOJQVt4CBcoUg7R8VYWxsOudQKeVws4yybZpwm8Rf8Ysk7530nMf LKyA== X-Gm-Message-State: APjAAAWuFkqatVI/SgwBJDvXHZXAYP9e5HgTdppS+XuLs4KaFq+FSznE WC0ZHr+ddtuIn6YsfAWTOkI0OkaM0by8EtQul4+/cO4= X-Google-Smtp-Source: APXvYqx5MXMH3I2pRxWpzcg7EuAv504Ks+UjYFiKHY63yX/VO9W53nRjX3v1zpv51QPUy2yh9f1ojYpQJOZOLNblTsI= X-Received: by 2002:a81:4d43:: with SMTP id a64mr10535729ywb.131.1567162493160; Fri, 30 Aug 2019 03:54:53 -0700 (PDT) MIME-Version: 1.0 From: shreyank amartya Date: Fri, 30 Aug 2019 16:24:41 +0530 Message-ID: Subject: hwpmc ktrdump: failed to resolve ktr symbols To: freebsd-drivers@freebsd.org Cc: freebsd-hackers@freebsd.org X-Rspamd-Queue-Id: 46KbwG4W1tz402s X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=qxPeUuZK; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of shreyankfbsd@gmail.com designates 2607:f8b0:4864:20::c29 as permitted sender) smtp.mailfrom=shreyankfbsd@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; IP_SCORE(0.00)[ip: (-9.39), ipnet: 2607:f8b0::/32(-2.84), asn: 15169(-2.32), country: US(-0.05)]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[9.2.c.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_SHORT(-1.00)[-0.996,0]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Aug 2019 10:54:55 -0000 Hi, I'm trying to collect traces from hwpmc module. I compiled the module with -DHWPMC_DEBUG option and set the sysctl kern.hwpmc.debugflags but I'm unable to retrive the traces using ktrdump. I get this error message: ktrdump: failed to resolve ktr symbols I'm guessing that this error occurs because the symbols for hwpmc module (compiled and loaded separately) are not a part of kernel. If this is the case, then how do I get those symbols. In the ktr man page its also mentioned that ddb and gdb can retrieve ktraces. I found the ddb command show ktr. But how do I invoke ddb (without a panic)? I'm unable to find how can I use gdb to view the traces (I launched kgdb but could not find a command to show kernel traces). Any idea on how to get ktrdump working? Or get the kernel traces. Thanks Shreyank