From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 948F445BC3; Fri, 25 Oct 2024 17:56:52 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2BCE5402A3; Fri, 25 Oct 2024 17:56:52 +0200 (CEST) Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) by mails.dpdk.org (Postfix) with ESMTP id 242AB4021F for ; Fri, 25 Oct 2024 17:56:51 +0200 (CEST) Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-71e4e481692so1662004b3a.1 for ; Fri, 25 Oct 2024 08:56:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1729871810; x=1730476610; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=9qvJq5PW6izOaSsrlrmxBdwGboHoUpUIfMk9Fa5o5oY=; b=WzjJVpy8O61gV27k/xu3awIZr/vHjFZWGtGpoEIQfEhngBjKcnIKhkkijFLi8QqJH3 4cKY2g+xDYqbM2MvVKtIt3eW/2yM3DoDq142j/AXrEPwTGWT5HecJEelstjC6aPA6e/C kETVlpZ1P5pBo3icqeLWhT1fSGPTT+oZhv5772m5QBqSputIQJUQnS0WiNd1P79xBvug zAaXR7s1jEnCfF3QIcvAMMRV0X7p9+DYQ7OnI023GKk0kxIbdGYC8kwwHgwxTG6Z2m4e 1QJaWz1SsrGZW7ZeMrvm+lnfnYrBI5yzDXKjZZ6OWX/ezRT8/HIBfp8wwYq8YXqGR01O 9wow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729871810; x=1730476610; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9qvJq5PW6izOaSsrlrmxBdwGboHoUpUIfMk9Fa5o5oY=; b=DArHHm1TS0/EvRLqYLWhskOf9dvxcfMoFN26swbvxlEP1udZcODR1iuIGrVi24KyGc DMM5bdOyI8awbpPrEMD868JqiRIw3YX9S4ZBSH0yDyte82jx/jUbYVp+WH8yVufdqQ1d geXsRD01VdlcAm0p5JeGug7cqsM1vonf+yTqlLcVthjhfGLECJ99vxB9Kipk6kvna7UA eJixOkGWitIbW0IuDe/Jt8aBTWGAGf7K78kA1wu8GMWBAdknjlGJpk2ZcEUUrYgVxKAA pXq+oD+scWMqbCgXTwp82GhkCyA2sIHkXgl0baJvwua8ljw/zsNK8kUA9I79DXuwVu6h quOA== X-Gm-Message-State: AOJu0Yw8ZUfOa4ugAGkYpqZizpuh1qt254yFV2//qkzvHt4KeqsE39VQ WsfppoCLTRvrRGDxRzhkYHEsYvLM6MYYJRgMX6FFOBXC/kr34TDjBgDTCTp0/Zg= X-Google-Smtp-Source: AGHT+IHt0cXtKP0qTNVdtor70v8Z4hhnoQKQP2Fr4JCW/m5xS2huLW5N8b0j/rf2v1mX8TApV0LqSQ== X-Received: by 2002:a62:aa1a:0:b0:720:36c5:b53b with SMTP id d2e1a72fcca58-72036c5b866mr9646124b3a.17.1729871808439; Fri, 25 Oct 2024 08:56:48 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72057a3bf6asm1215091b3a.181.2024.10.25.08.56.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2024 08:56:48 -0700 (PDT) Date: Fri, 25 Oct 2024 08:56:46 -0700 From: Stephen Hemminger To: Baruch Even Cc: dev@dpdk.org, Morten =?UTF-8?B?QnLDuHJ1cA==?= , Bruce Richardson Subject: Re: [PATCH v28 11/13] log: add support for systemd journal Message-ID: <20241025085646.48b8a5cb@hermes.local> In-Reply-To: References: <20200814173441.23086-1-stephen@networkplumber.org> <20241024190818.172863-1-stephen@networkplumber.org> <20241024190818.172863-12-stephen@networkplumber.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Fri, 25 Oct 2024 18:33:40 +0300 Baruch Even wrote: > Can we have an option to disable journal auto-detection? > In my case I want to redirect the DPDK to our own tracing infrastructure > and for that I use the fopencookie myself and redirect it to our own > system. The journal will force it out and I'll need to ensure that the > environment variable is not set, which is doable but I'd rather not need to > mess with the environment and just set a flag in dpdk options to disable > the journal. > The detection works on stderr being associated with a specific device that is passed in by environment variable. Only systemd service is going to get this. If you wanted to override, either change the service file. If you redirect the with rte_openlog_stream() that should already override the stderr. Stuff, probably need to add a check for that.