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 C727C432BF; Tue, 7 Nov 2023 03:35:03 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 905E5402B5; Tue, 7 Nov 2023 03:35:03 +0100 (CET) Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) by mails.dpdk.org (Postfix) with ESMTP id E78FE402A1 for ; Tue, 7 Nov 2023 03:35:02 +0100 (CET) Received: by mail-pg1-f172.google.com with SMTP id 41be03b00d2f7-5b97ca78da8so3493165a12.3 for ; Mon, 06 Nov 2023 18:35:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1699324502; x=1699929302; 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=RG/oc//nMDOT0yOK89hWZnFqTCWSXen45MlbcCbgbWQ=; b=n7a/3uL5WKmXnn9D+WRI/vZXhanGf859JZdu7cpAecO80PxEwfCtJtOqKnlUWQzsfH 34rCNxjOlFenZihPMMqkNbdVdxGkmFhxN5ITXP7iY9Bj2UZhIKRZpL6LnfM89BeYRs2E 9nz32Kxh9lBt36mI1to3Hc+4mGuGupy9MuZ0LGiqa1EIswEG4HbiSAzxFeJiO7x2s5YI 70CnqGx+k6MtG95kMB4OV1TtYMIFkobSEGAlRXd0Af1FkG1a6Bjq08gYeP1xep6oHqtG k66NcRcxK0n4ZtO4Z08eT4bp7sW2UtFTiRORVk635s7l2CGCXr0Y0dmbpz6CPDkpDZh2 vi/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699324502; x=1699929302; 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=RG/oc//nMDOT0yOK89hWZnFqTCWSXen45MlbcCbgbWQ=; b=bHQzxp9L9Srn2b9E6frFQTz6QTeCmrW+AassybJAEEgszlTE6/UITz2GM5HIjMHa6X Hzj8uXtEwF+qhBkc3BYBBBOWy5yjq0CdYN1176mvFfWoW9YFex9kIUfuZYFuaom7EHZZ iseWOpTGVkZsK+y36EMSf0TqbVpSOC3a+i54QMUosQ6r+tjPdsZaF6ueDG81JFtBlJ0g mVlXJ1pDsYNlp3kZe36jwE0AiQPgrEDSXL9qjU/1ve14w20Rsb0D9nA3GTE/tWu9mrxr MKK4C0qdilpglTdVpLpizIvUbNlJRvK+yMTR+pot3wTo4KTS8B/Ww2Cc6kx68W9xNCts atgQ== X-Gm-Message-State: AOJu0YzcNiKWl7ml6VtujkKfRTDFnWkLSBGFCSnlWd+pRLHtQPX063cb d07A6lcdKnGApXQUDq/iJaRQdA== X-Google-Smtp-Source: AGHT+IEtr+uNZXarpWbyYSyu5/uackgHlFr6KpsO2JayE6goZRvwInH9YzsvacFG4JLS12nsmAPB6Q== X-Received: by 2002:a05:6a21:3e09:b0:180:f227:57db with SMTP id bk9-20020a056a213e0900b00180f22757dbmr18199885pzc.32.1699324501918; Mon, 06 Nov 2023 18:35:01 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id p4-20020a170902a40400b001c0de73564dsm6501892plq.205.2023.11.06.18.35.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 18:35:01 -0800 (PST) Date: Mon, 6 Nov 2023 18:34:59 -0800 From: Stephen Hemminger To: Morten =?UTF-8?B?QnLDuHJ1cA==?= Cc: , "Isaac Boukris" , "Reshma Pattan" Subject: Re: [PATCH 2/4] dumpcap: allow multiple invocations Message-ID: <20231106183459.24581b34@hermes.local> In-Reply-To: <98CBD80474FA8B44BF855DF32C47DC35D87BE2@smartserver.smartshare.dk> References: <20230921042349.104150-1-stephen@networkplumber.org> <20230921042349.104150-3-stephen@networkplumber.org> <98CBD80474FA8B44BF855DF32C47DC35D87BE2@smartserver.smartshare.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 Thu, 21 Sep 2023 08:22:12 +0200 Morten Br=C3=B8rup wrote: > I'm not sure getpid() is available on Windows. How about: >=20 > #ifdef _WIN32 > #include // With the headers, not here. > "dumpcap-%lu", GetCurrentProcessId()); > #else > "dumpcap-%u", getpid()); > #endif Dumpcap doesn't support windows because there are lots of things about pdump library that won't work on Windows.