All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Cc: Thomas Monjalon <thomas@monjalon.net>,
	dev@dpdk.org, bruce.richardson@intel.com,
	david.marchand@redhat.com
Subject: Re: [dpdk-dev] [PATCH v3 0/4] introduce global debug flag
Date: Mon, 13 Jul 2020 18:23:08 -0700	[thread overview]
Message-ID: <20200713182308.63353bcd@hermes.lan> (raw)
In-Reply-To: <d582c88f-0f09-9d06-09f6-0b2e7ebc2e9c@partner.samsung.com>

On Tue, 14 Jul 2020 00:39:43 +0200
Lukasz Wojciechowski <l.wojciechow@partner.samsung.com> wrote:

> W dniu 11.07.2020 o 17:11, Thomas Monjalon pisze:
> > 09/07/2020 15:48, Lukasz Wojciechowski:  
> >> This set of patches introduces a global rte_debug flag for dpdk.
> >> This will allow easy switch to debug build configuration using a single
> >> flag. In the debug mode a RTE_DEBUG macro is defined to 1
> >> and for every enabled to be built library a RTE_DEBUG_{library name}
> >> and for every enabled to be built driver
> >> a RTE_DEBUG_{driver_class}_{driver_name} is also defined.
> >> These macros can be used to place a debug code
> >> inside #ifdef #endif clauses.
> >>
> >> The following requirements were discussed on the mailing list:
> >> 1) The global debug flag is required to enable all the sanity checks
> >> and validations that are normally not used due to performance reasons
> >>
> >> 2) The best option would be to have a single flag - not to introduce
> >> too many build options
> >>
> >> 3) This option should be separated from meson "debug" option
> >> (used for build with symbols) and can be called "rte_debug"
> >>
> >> 4) The currently existing DEBUG macros should not be replaced with
> >> a RTE_DEBUG macro. This would allow to still enable them using
> >> CFLAGS="-D..." to test a single module (library, driver).  
> > Please can we clarify this point?
> > You mean not replacing driver macros with the global RTE_DEBUG?
> > But we agree (next point) to replace existing macros?  
> Yes, I'll try.
> 
> This point was added after discussion about using a single RTE_DEBUG 
> flag for all debugs.
> I think we all agreed that it will be better to keep separate flags for 
> separate libraries or drivers instead of using only one RTE_DEBUG flag 
> for all debugs.
> e.g. in current version of patches there is a flag RTE_DEBUG_MBUF for 
> debugs related to librte_mbuf.
> This allows to enable only some debugs at compile time passing them to 
> CFLAGS.

Has anyone investigated doing static branches in userspace?
It might mean doing self-modifying code.
That would allow always keeping/compiling in the debug code but at zero runtime cost.

      reply	other threads:[~2020-07-14  1:23 UTC|newest]

Thread overview: 74+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20200417215755eucas1p25660167c57c26ef04a82a8bb981e07b5@eucas1p2.samsung.com>
2020-04-17 21:57 ` [dpdk-dev] [PATCH v1 00/17] introduce global debug flag Lukasz Wojciechowski
2020-04-17 21:57   ` [dpdk-dev] [PATCH v1 01/17] config: " Lukasz Wojciechowski
2020-04-17 21:57   ` [dpdk-dev] [PATCH v1 02/17] config: remove unused config flags Lukasz Wojciechowski
2020-04-17 21:57   ` [dpdk-dev] [PATCH v1 03/17] ethdev: replace library debug flag with global one Lukasz Wojciechowski
2020-04-20  9:04     ` Dumitrescu, Cristian
2020-04-20 13:37       ` Ananyev, Konstantin
2020-04-20 14:21         ` Bruce Richardson
2020-04-20 14:43           ` Lukasz Wojciechowski
2020-04-20 17:11             ` Bruce Richardson
2020-04-20 17:21               ` Thomas Monjalon
2020-04-20 17:30                 ` Bruce Richardson
2020-04-20 17:34                   ` Lukasz Wojciechowski
2023-06-12 16:23                     ` Stephen Hemminger
2020-04-20 17:35                   ` Thomas Monjalon
2020-04-20 18:57                     ` Bruce Richardson
2020-04-21  0:32                       ` Ananyev, Konstantin
2020-04-21 20:58                         ` Lukasz Wojciechowski
2020-04-21 21:38                           ` Thomas Monjalon
2020-04-22 10:41                             ` Lukasz Wojciechowski
2020-04-22 10:55                               ` Bruce Richardson
2020-04-22 11:02                                 ` Thomas Monjalon
2020-04-22 11:16                                   ` Bruce Richardson
2020-04-22 11:29                                   ` Ananyev, Konstantin
2020-04-22 12:24                                     ` Thomas Monjalon
2020-07-09 14:09                                       ` Lukasz Wojciechowski
2020-07-14 10:30                                         ` Ananyev, Konstantin
2020-04-22 11:52                                   ` Lukasz Wojciechowski
2020-04-22 12:44                                     ` Bruce Richardson
2020-04-20 17:24               ` Bruce Richardson
2020-04-17 21:57   ` [dpdk-dev] [PATCH v1 04/17] eventdev: " Lukasz Wojciechowski
2020-04-18  9:41     ` [dpdk-dev] [EXT] " Jerin Jacob Kollanukkaran
2020-04-18  9:53       ` Thomas Monjalon
2020-04-18 10:05         ` Jerin Jacob
2020-04-18 13:22           ` Thomas Monjalon
2020-04-17 21:57   ` [dpdk-dev] [PATCH v1 05/17] fib: " Lukasz Wojciechowski
2020-04-17 21:57   ` [dpdk-dev] [PATCH v1 06/17] cmdline: " Lukasz Wojciechowski
2020-04-17 21:57   ` [dpdk-dev] [PATCH v1 07/17] hash: " Lukasz Wojciechowski
2020-04-17 21:57   ` [dpdk-dev] [PATCH v1 08/17] ip_frag: " Lukasz Wojciechowski
2020-04-17 21:57   ` [dpdk-dev] [PATCH v1 09/17] lpm: " Lukasz Wojciechowski
2020-04-17 21:57   ` [dpdk-dev] [PATCH v1 10/17] mbuf: " Lukasz Wojciechowski
2020-04-17 21:57   ` [dpdk-dev] [PATCH v1 11/17] mempool: " Lukasz Wojciechowski
2020-04-17 21:57   ` [dpdk-dev] [PATCH v1 12/17] power: " Lukasz Wojciechowski
2020-04-17 21:57   ` [dpdk-dev] [PATCH v1 13/17] rcu: " Lukasz Wojciechowski
2020-04-17 21:57   ` [dpdk-dev] [PATCH v1 14/17] timer: " Lukasz Wojciechowski
2020-04-17 21:57   ` [dpdk-dev] [PATCH v1 15/17] vhost: " Lukasz Wojciechowski
2020-04-17 21:57   ` [dpdk-dev] [PATCH v1 16/17] eal: " Lukasz Wojciechowski
2020-04-17 21:57   ` [dpdk-dev] [PATCH v1 17/17] sched: " Lukasz Wojciechowski
2020-04-20  9:04     ` Dumitrescu, Cristian
2020-04-22 21:45   ` [dpdk-dev] [PATCH v2 0/3] introduce global debug flag Lukasz Wojciechowski
2020-04-22 21:45     ` [dpdk-dev] [PATCH v2 1/3] config: introduce global rte " Lukasz Wojciechowski
2020-06-26 16:56       ` Bruce Richardson
2020-06-28  8:40         ` Andrew Rybchenko
2020-07-09 13:51         ` Lukasz Wojciechowski
2020-07-09 14:09           ` Bruce Richardson
2020-07-09 14:13             ` Lukasz Wojciechowski
2020-04-22 21:45     ` [dpdk-dev] [PATCH v2 2/3] config: remove unused config flags Lukasz Wojciechowski
2020-06-26 16:56       ` Bruce Richardson
2020-04-22 21:45     ` [dpdk-dev] [PATCH v2 3/3] mbuf: standardize library debug flag Lukasz Wojciechowski
2020-06-26 17:00       ` Bruce Richardson
2020-07-09 13:50         ` Lukasz Wojciechowski
2020-04-24  9:09     ` [dpdk-dev] [PATCH v2 0/3] introduce global " Bruce Richardson
2020-04-24 10:14       ` Lukasz Wojciechowski
2020-07-09 13:48     ` [dpdk-dev] [PATCH v3 0/4] " Lukasz Wojciechowski
2020-07-09 13:48       ` [dpdk-dev] [PATCH v3 1/4] config: introduce global rte " Lukasz Wojciechowski
2020-07-09 13:48       ` [dpdk-dev] [PATCH v3 2/4] config: remove unused config flags Lukasz Wojciechowski
2020-07-16  7:43         ` David Marchand
2020-07-16  8:41           ` Ruifeng Wang
2020-07-09 13:48       ` [dpdk-dev] [PATCH v3 3/4] mbuf: standardize library debug flag Lukasz Wojciechowski
2020-07-09 13:48       ` [dpdk-dev] [PATCH v3 4/4] app/test: add mbuf perf tests Lukasz Wojciechowski
2020-07-11 15:11       ` [dpdk-dev] [PATCH v3 0/4] introduce global debug flag Thomas Monjalon
2020-07-13  9:04         ` Bruce Richardson
2020-07-13 22:44           ` Lukasz Wojciechowski
2020-07-13 22:39         ` Lukasz Wojciechowski
2020-07-14  1:23           ` Stephen Hemminger [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200713182308.63353bcd@hermes.lan \
    --to=stephen@networkplumber.org \
    --cc=bruce.richardson@intel.com \
    --cc=david.marchand@redhat.com \
    --cc=dev@dpdk.org \
    --cc=l.wojciechow@partner.samsung.com \
    --cc=thomas@monjalon.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.