From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id B8CE43858014 for ; Thu, 18 Aug 2022 17:35:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B8CE43858014 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-382-61U9KlJANJuWGAZRvqiRaw-1; Thu, 18 Aug 2022 13:35:53 -0400 X-MC-Unique: 61U9KlJANJuWGAZRvqiRaw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0FAE985A581; Thu, 18 Aug 2022 17:35:53 +0000 (UTC) Received: from redhat.com (unknown [10.2.17.198]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EF354400EAB2; Thu, 18 Aug 2022 17:35:52 +0000 (UTC) Received: from [127.0.0.1] (helo=vm-rhel7) by redhat.com with esmtp (Exim 4.94.2) (envelope-from ) id 1oOjQt-0005xo-LQ; Thu, 18 Aug 2022 13:35:52 -0400 From: fche@redhat.com (Frank Ch. Eigler) To: Cong Wu Cc: "systemtap\@sourceware.org" Subject: Re: a idea about probe proc path like /proc/pid/root/xxx Date: Thu, 18 Aug 2022 13:35:37 -0400 References: Message-ID: <87wnb5mp3c.fsf@redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.11.54.1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-Spam-Status: No, score=-8.5 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: systemtap@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Systemtap mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Aug 2022 17:35:56 -0000 Cong Wu writes: > hi all. currently, I'm use stap to probe user process like `probe > process("/proc/xx/root/xxx").function("a")`, what I really want is to > probe a process running in docker, I make a small patch. Interesting idea. > [...] > basically if solib_pathname start with /proc/$(task->tgid)/root then i > just compare the rest part of it. That's an interesting solution. Does it work fully? Have you tried the buildid-based probing facility, which is independent of run-time paths such as containers/namespace? We're also working on another extension that is related: https://sourceware.org/bugzilla/show_bug.cgi?id=27410 - FChE