From owner-freebsd-hackers@freebsd.org Thu Jun 6 18:40:23 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5966215BCA5A for ; Thu, 6 Jun 2019 18:40:23 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from smtp-out-so.shaw.ca (smtp-out-so.shaw.ca [64.59.136.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id D6EBF82DEA; Thu, 6 Jun 2019 18:40:21 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from spqr.komquats.com ([70.67.125.17]) by shaw.ca with ESMTPA id YxGZh33TTo7SQYxGbhciGL; Thu, 06 Jun 2019 12:37:38 -0600 X-Authority-Analysis: v=2.3 cv=Go88BX9C c=1 sm=1 tr=0 a=VFtTW3WuZNDh6VkGe7fA3g==:117 a=VFtTW3WuZNDh6VkGe7fA3g==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=IkcTkHD0fZMA:10 a=dq6fvYVFJ5YA:10 a=6I5d2MoRAAAA:8 a=YxBL1-UpAAAA:8 a=TZ3jIaUWbIl67-U2D-wA:9 a=QEXdDO2ut3YA:10 a=IjZwj45LgO3ly-622nXo:22 a=Ia-lj3WSrqcvXOmTRaiG:22 Received: from android-9b917f0ce39da6e6.esitwifi.local (S0106788a207e2972.gv.shawcable.net [70.66.154.233]) by spqr.komquats.com (Postfix) with ESMTPSA id BA1AC67F; Thu, 6 Jun 2019 11:37:34 -0700 (PDT) Date: Thu, 06 Jun 2019 11:15:04 -0700 User-Agent: K-9 Mail for Android In-Reply-To: <234087607.20190606204312@serebryakov.spb.ru> References: <234087607.20190606204312@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: =?UTF-8?Q?Re=3A_DTrace_SDT_probes_in_kernel_module_=E2=80=94_how_to=3F?= To: lev@FreeBSD.org, Lev Serebryakov , freebsd-hackers@freebsd.org From: Cy Schubert Message-ID: <55C981A2-A580-4FE5-9CB7-CB47D5705415@cschubert.com> X-CMAE-Envelope: MS4wfH1CrFq8uOU/HQqyc+oXMyO9fhGj7U/YFRfLzjoJNEp8gPgLG3+6gW1vFstV/dHT4nprGX2io/L3NPnJMImZCERuQeNJB9/WNWpylX08dl2rkoOoqjvY IAcjQx4ePOMCOhxx35NaAUHtWxv/ktex/SjV5f6tIYbadoecVgITkrCDa/kNcd5MLXpE79O2mDjoj9xW4cIYNUeJElmKSRg9kSM= X-Rspamd-Queue-Id: D6EBF82DEA X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-4.58 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[17.125.67.70.zen.spamhaus.org : 127.0.0.11,233.154.66.70.zen.spamhaus.org : 127.0.0.11]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[3]; RCVD_TLS_LAST(0.00)[]; MX_GOOD(-0.01)[cached: spqr.komquats.com]; NEURAL_HAM_SHORT(-0.98)[-0.979,0]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_SPF_NA(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[139.136.59.64.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:6327, ipnet:64.59.128.0/20, country:CA]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-2.39)[ip: (-6.05), ipnet: 64.59.128.0/20(-3.29), asn: 6327(-2.54), country: CA(-0.09)]; FROM_EQ_ENVFROM(0.00)[] 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: Thu, 06 Jun 2019 18:40:23 -0000 On June 6, 2019 10:43:12 AM PDT, Lev Serebryakov wrote: >Hello Freebsd-hackers, > >What should I do to add SDT probes into kernel module=2E I've tried to >add simple > >DTRACE_PROBE1(module__name, type, value); > >to source code=2E No errors, no probes after module load=2E I've added >WITH_CTF=3D1 to make > command line=2E Warnings from ctfmerge, no probes after module load=2E > >What is proper way to add SDT probes to module and how should I build >it? You'll need to include sdt=2Eh=2E You can see what is done and what I've a= dded to ipfilter, which manages to indirectly include sdt=2Eh through other= headers=2E Juxtaposed to this discussion, I'm hoping to implement USDT into mountd an= d a few other places before next BSDCan=2E amd64 works=2E i386 is borked=2E --=20 Pardon the typos and autocorrect, small keyboard in use=2E Cheers, Cy Schubert FreeBSD UNIX: Web: http://www=2EFreeBSD=2Eorg The need of the many outweighs the greed of the few=2E