From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id VkOQC9GRK2cexScAWB0awg (envelope-from ) for ; Wed, 06 Nov 2024 10:57:05 -0500 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=lists.lttng.org header.i=@lists.lttng.org header.a=rsa-sha256 header.s=default header.b=xPlwwkEx; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 203DC1E5FB; Wed, 6 Nov 2024 10:57:05 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=4.0.0 Received: from lists.lttng.org (lists.lttng.org [167.114.26.123]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id BF17B1E5CD for ; Wed, 6 Nov 2024 10:57:03 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.lttng.org; s=default; t=1730908623; bh=1TzBj06qkGW6heidPzpqa1lGoLFE41vqNJPyeevkdpA=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=xPlwwkExr3143Y+PZI7RPGCZfIRAFLQhT9pLwwrLRMyrwN/XOIAC9uil9yPx3Ma3A k+dhJhoE1jU0UobnBR9NEMGUCGvsU0n2HE11Ni5vxfSLKPvmoENs60gGoN/Ra7vxbv x6+knCb36557zJ+59jiB0/tq+GwR4YgP2vo5nhrEqgZyjz1kcMFJ0EO7NqKBcf/zcR 80tIbfF6Lf8KpIWfGZs+damvHkTG7H5ft4Qwdy11JveTLcmc+BISB5dcumnBt4x3n5 /jdkRuLijJ8CfXAIthtZKcgSMiazl0Vjjh9W0xEI/O6i0LfQHc7ZbfvuM8ghIvn8w1 TY5Jlgr5WdN1A== Received: from lists-lttng01.efficios.com (localhost [IPv6:::1]) by lists.lttng.org (Postfix) with ESMTP id 4Xk8wH1vPZz1S9Z; Wed, 6 Nov 2024 10:57:03 -0500 (EST) Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) by lists.lttng.org (Postfix) with ESMTPS id 4Xk8wD13p1z1S9T for ; Wed, 6 Nov 2024 10:56:59 -0500 (EST) Received: from [IPV6:2606:6d00:100:4000:cacb:9855:de1f:ded2] (unknown [IPv6:2606:6d00:100:4000:cacb:9855:de1f:ded2]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4Xk8w52d4TzjyN; Wed, 6 Nov 2024 10:56:53 -0500 (EST) Message-ID: Date: Wed, 6 Nov 2024 10:55:23 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Kernel tracing from inside a Docker container To: "Eibach, Dirk" , "lttng-dev@lists.lttng.org" References: <9cd16ae1-a2c8-4279-b8df-82ab5be5b31e.9610e98a-1b50-4bc4-83bb-532efa96e9a9.ca90a335-62b6-4541-8ae3-a07498ba9de9@emailsignatures365.codetwo.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: lttng-dev@lists.lttng.org X-Mailman-Version: 2.1.39 Precedence: list List-Id: LTTng development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Mathieu Desnoyers via lttng-dev Reply-To: Mathieu Desnoyers Errors-To: lttng-dev-bounces@lists.lttng.org Sender: "lttng-dev" Hi, lttng-modules exposes its control ABI through the virtual file /proc/lttng. Does you container have access to that file ? Note that if you give access to that file within the container, then the container can observe detailed information about kernel internals (including related to other containers). Thanks, Mathieu On 2024-11-06 02:38, Eibach, Dirk via lttng-dev wrote: > Hi, > > I want to do kernel tracing from inside a Docker container. > Kernel-tracing works from the host and the modules are loaded. > Userspace tracing works inside the container. But when I do "lttng list > --kernel" from the container I get "Error: Unable to list kernel events: > Kernel tracer not available". Running in the container in priviledged > mode makes no difference. > > Mit freundlichen Grüßen / Best Regards > Dirk Eibach > _________________________________ > CARL CLOOS SCHWEISSTECHNIK GMBH > Softwareentwickler / AU-EW > Softwaredeveloper / AU-EW > Hauptverwaltung/Headquarters: Carl-Cloos-Strasse 1 > Zentrallager/Central Warehouse: Carl-Cloos-Strasse 6 > 35708 Haiger > Germany > Tel:      +49 2773 85-888 > E-Mail: mailto:dirk.eibach@cloos.de > Internet: http://www.cloos.de/ > > Sitz der Firma/Headquarters: 35708 Haiger, Germany > Amtsgericht/Lower district court: Wetzlar HR B 3052 > UST.-ID-Nr./VAT ID No.: DE 111 79 45 11 > WEEE-Reg.-Nr./WEEE-Reg. No.: DE83919745 > Geschäftsführer/Management: Stephan Pittner (CEO) > > > > > > > > CLOOS-Newsletter > -- Mathieu Desnoyers EfficiOS Inc. https://www.efficios.com