From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt0-f194.google.com (mail-qt0-f194.google.com [209.85.216.194]) by dpdk.org (Postfix) with ESMTP id 2A818288C for ; Thu, 17 May 2018 04:41:53 +0200 (CEST) Received: by mail-qt0-f194.google.com with SMTP id e8-v6so3932644qth.0 for ; Wed, 16 May 2018 19:41:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=wWirdjeRaGepnKHODe1hrndNk0x2SJd0FG35WNkmF2c=; b=DjdX5nWToTDep3KJE5AwvsbZBrkWsO8IDdD1+X5VLCwp3Ln4j+ckaxBWxEkT8H8Gbg kjoQg3DbeJ4msq4PP9V2HVk5YsKV+if9ey83feQ3ynh4w2wVtg85uyntOBIZzr6+sdl8 GNAGSm6hF3YUjOYRkY/wYoR4wICC3ScIWoVpq5qXuSG9Di+Pgo3JqB0Y5t0r9AuYoTaH OB12i6jbFzjwEbzupIrNBOSMt5Es2tFckoZn+Y7Wg1YYniWWXBzt7JjIB2WhgHz2CqiP 0R/SyYfavUo4K0bl5M8ZLG6DdmbtyKBrMj2xUSwF+qV75iDiu0YILuoevZmC+Veq3LzW zzzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=wWirdjeRaGepnKHODe1hrndNk0x2SJd0FG35WNkmF2c=; b=srAzq4BEU756foOBrTcYqAJV1IiNVwEuJptJyETGUYYIVst7Wm1j8wM9wMuChwvY5+ VDdUkrQtLEyjA/mwRpMrvLPnWZDUclkoVArwLCPF5ZcoepuyQVWIecKBGvf8Tf/anEJM vZS0LB/3bU6hwSYGED/tEdZAxRpv5NysBHc/twnQVxl0Qt7Fh8z7pCQbcTEQ/vgshKBN L+x6f0p5pj9KMjOHjR0WPbju8S8d6DlbXjUzhHARclCVVNga9P7Ro4q8uTR665DAYnQI M1rVtaTKQivSZWHFDMd1WEETvRmaAamzl3JCrCEIBlK4otOqEY7bxeALUy7WMBiEr/BP Ta6g== X-Gm-Message-State: ALKqPwdwYFyQ6NkBaD81dhKHQtLofWXC4cAE/fcDBBqwAG9ME+AeB6Ao I4MY5p79/j3INHJjdQjfXu4TnqfK+x9mFtHsu7w= X-Google-Smtp-Source: AB8JxZoA1XZtFlL8dXyu0uUoLxXPzgHZ3CMfQ63aIuvpo5wGqa213XVRNritLJm2AUxc5aTZaIidkP/wOhhqw/gjjec= X-Received: by 2002:a0c:9557:: with SMTP id m23-v6mr3470387qvm.142.1526524912618; Wed, 16 May 2018 19:41:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.221.209 with HTTP; Wed, 16 May 2018 19:41:52 -0700 (PDT) In-Reply-To: References: From: Sam Date: Thu, 17 May 2018 10:41:52 +0800 Message-ID: To: Ferruh Yigit Cc: dev@dpdk.org, ovs-dev@openvswitch.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] How to dump DPDK log? X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 May 2018 02:41:53 -0000 Oh, it should be user1,8 in dpdk-17.05 OMG.... 2018-05-17 10:26 GMT+08:00 Sam : > How to set this param... > > I use this, but report me bug: > > sudo /usr/local/bin/ovs-vsctl --no-wait set Open_vSwitch . > other_config:dpdk-extra="--log-level=user1,debug -c 0x40004 -n 4 > --socket-mem 1024 -w 0000:01:00.0 -w 0000:01:00.1" > > Bug: > > 2018-05-17T02:23:21.878Z|00010|dpdk|INFO|EAL ARGS: ovs-vswitchd > --log-level=user1,debug -c 0x40004 -n 4 --socket-mem 1024 -w 0000:01:00.0 > -w 0000:01:00.1 > 2018-05-17T02:23:21.878Z|00011|dpdk|ERR|EAL: invalid parameters for > --log-level > 2018-05-17T02:23:21.879Z|00012|dpdk|INFO|EAL: Detected 32 lcore(s) > 2018-05-17T02:23:21.879Z|00013|dpdk|ERR|EAL: invalid parameters for > --log-level > > 2018-05-17T02:23:04.374Z|00010|dpdk|INFO|EAL ARGS: ovs-vswitchd > --log-level="user1,debug" -c 0x40004 -n 4 --socket-mem 1024 -w 0000:01:00.0 > -w 0000:01:00.1 > 2018-05-17T02:23:04.374Z|00011|dpdk|ERR|EAL: invalid parameters for > --log-level > 2018-05-17T02:23:04.375Z|00012|dpdk|INFO|EAL: Detected 32 lcore(s) > 2018-05-17T02:23:04.375Z|00013|dpdk|ERR|EAL: invalid parameters for > --log-level > > 2018-05-16 21:29 GMT+08:00 Ferruh Yigit : > >> On 5/16/2018 9:30 AM, Sam wrote: >> > I want DPDK VHOST module DEBUG level log >> > >> > 2018-05-16 16:27 GMT+08:00 Sam : >> > >> >> Hi all, >> >> >> >> I'm debugging OVS2.9.0 and DPDK18.02, I found I could not dump DPDK log >> >> like vhost module. >> >> >> >> How can I dump DPDK log into files? Thank you~ >> >> >> >> (Unfortunately) vhost module doesn't register its log type but uses USER1 >> log >> type [1]. >> >> Need to set user1 log type to debug, following eal parameter should work: >> --log-level="user1,debug" >> >> Same can be done with logging related APIs by application >> >> >> [1] >> https://dpdk.org/browse/dpdk/tree/lib/librte_vhost/vhost.h?h >> =v18.05-rc4#n351 >> > >