* [dpdk-dev] [PATCH v1 1/1] test: fix build with GCC 4.8.5
@ 2018-05-04 21:38 Erik Gabriel Carrillo
2018-05-05 3:17 ` Jerin Jacob
` (4 more replies)
0 siblings, 5 replies; 9+ messages in thread
From: Erik Gabriel Carrillo @ 2018-05-04 21:38 UTC (permalink / raw)
To: jerin.jacob; +Cc: dev
Build errors occur on CentOS 7 with GCC 4.8.5 20150623 in the
event_timer_adapter_test autotest; the
-Werror=missing-field-initializers option causes the compiler to emit
messages like "error: missing initializer for field ‘priority’ of
‘struct <anonymous>’" in several places.
Add -Wno-missing-field-initializers to the test's CFLAGS to allow the
current syntax if we are using GCC 5.0 or lower.
Signed-off-by: Erik Gabriel Carrillo <erik.g.carrillo@intel.com>
---
test/test/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/test/test/Makefile b/test/test/Makefile
index 2630ab4..2011857 100644
--- a/test/test/Makefile
+++ b/test/test/Makefile
@@ -211,6 +211,7 @@ CFLAGS_test_memcpy_perf.o += -fno-var-tracking-assignments
# designated initializers.
ifeq ($(shell test $(GCC_VERSION) -le 50 && echo 1), 1)
CFLAGS_test_eventdev_sw.o += -Wno-missing-field-initializers
+CFLAGS_test_event_timer_adapter.o += -Wno-missing-field-initializers
endif
endif
endif
--
2.6.4
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [dpdk-dev] [PATCH v1 1/1] test: fix build with GCC 4.8.5
2018-05-04 21:38 [dpdk-dev] [PATCH v1 1/1] test: fix build with GCC 4.8.5 Erik Gabriel Carrillo
@ 2018-05-05 3:17 ` Jerin Jacob
2018-05-05 4:55 ` Stephen Hemminger
` (3 subsequent siblings)
4 siblings, 0 replies; 9+ messages in thread
From: Jerin Jacob @ 2018-05-05 3:17 UTC (permalink / raw)
To: Erik Gabriel Carrillo; +Cc: dev
-----Original Message-----
> Date: Fri, 4 May 2018 16:38:03 -0500
> From: Erik Gabriel Carrillo <erik.g.carrillo@intel.com>
> To: jerin.jacob@caviumnetworks.com
> CC: dev@dpdk.org
> Subject: [PATCH v1 1/1] test: fix build with GCC 4.8.5
> X-Mailer: git-send-email 1.7.10
>
> Build errors occur on CentOS 7 with GCC 4.8.5 20150623 in the
> event_timer_adapter_test autotest; the
> -Werror=missing-field-initializers option causes the compiler to emit
> messages like "error: missing initializer for field ‘priority’ of
> ‘struct <anonymous>’" in several places.
>
> Add -Wno-missing-field-initializers to the test's CFLAGS to allow the
> current syntax if we are using GCC 5.0 or lower.
>
Missing the 'Fixes' tag:
With above change:
Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
> Signed-off-by: Erik Gabriel Carrillo <erik.g.carrillo@intel.com>
> ---
> test/test/Makefile | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/test/test/Makefile b/test/test/Makefile
> index 2630ab4..2011857 100644
> --- a/test/test/Makefile
> +++ b/test/test/Makefile
> @@ -211,6 +211,7 @@ CFLAGS_test_memcpy_perf.o += -fno-var-tracking-assignments
> # designated initializers.
> ifeq ($(shell test $(GCC_VERSION) -le 50 && echo 1), 1)
> CFLAGS_test_eventdev_sw.o += -Wno-missing-field-initializers
> +CFLAGS_test_event_timer_adapter.o += -Wno-missing-field-initializers
> endif
> endif
> endif
> --
> 2.6.4
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [dpdk-dev] [PATCH v1 1/1] test: fix build with GCC 4.8.5
2018-05-04 21:38 [dpdk-dev] [PATCH v1 1/1] test: fix build with GCC 4.8.5 Erik Gabriel Carrillo
2018-05-05 3:17 ` Jerin Jacob
@ 2018-05-05 4:55 ` Stephen Hemminger
2018-05-07 18:15 ` Carrillo, Erik G
2018-05-07 19:12 ` [dpdk-dev] [PATCH v2 " Erik Gabriel Carrillo
` (2 subsequent siblings)
4 siblings, 1 reply; 9+ messages in thread
From: Stephen Hemminger @ 2018-05-05 4:55 UTC (permalink / raw)
To: Erik Gabriel Carrillo; +Cc: jerin.jacob, dev
On Fri, 4 May 2018 16:38:03 -0500
Erik Gabriel Carrillo <erik.g.carrillo@intel.com> wrote:
> Build errors occur on CentOS 7 with GCC 4.8.5 20150623 in the
> event_timer_adapter_test autotest; the
> -Werror=missing-field-initializers option causes the compiler to emit
> messages like "error: missing initializer for field ‘priority’ of
> ‘struct <anonymous>’" in several places.
>
> Add -Wno-missing-field-initializers to the test's CFLAGS to allow the
> current syntax if we are using GCC 5.0 or lower.
>
> Signed-off-by: Erik Gabriel Carrillo <erik.g.carrillo@intel.com>
> ---
> test/test/Makefile | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/test/test/Makefile b/test/test/Makefile
> index 2630ab4..2011857 100644
> --- a/test/test/Makefile
> +++ b/test/test/Makefile
> @@ -211,6 +211,7 @@ CFLAGS_test_memcpy_perf.o += -fno-var-tracking-assignments
> # designated initializers.
> ifeq ($(shell test $(GCC_VERSION) -le 50 && echo 1), 1)
> CFLAGS_test_eventdev_sw.o += -Wno-missing-field-initializers
> +CFLAGS_test_event_timer_adapter.o += -Wno-missing-field-initializers
> endif
> endif
> endif
Why not fix the code rather than supressing the warning??
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [dpdk-dev] [PATCH v1 1/1] test: fix build with GCC 4.8.5
2018-05-05 4:55 ` Stephen Hemminger
@ 2018-05-07 18:15 ` Carrillo, Erik G
0 siblings, 0 replies; 9+ messages in thread
From: Carrillo, Erik G @ 2018-05-07 18:15 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: jerin.jacob, dev
> -----Original Message-----
> From: Stephen Hemminger [mailto:stephen@networkplumber.org]
> Sent: Friday, May 4, 2018 11:55 PM
> To: Carrillo, Erik G <erik.g.carrillo@intel.com>
> Cc: jerin.jacob@caviumnetworks.com; dev@dpdk.org
> Subject: Re: [dpdk-dev] [PATCH v1 1/1] test: fix build with GCC 4.8.5
>
> On Fri, 4 May 2018 16:38:03 -0500
> Erik Gabriel Carrillo <erik.g.carrillo@intel.com> wrote:
>
> > Build errors occur on CentOS 7 with GCC 4.8.5 20150623 in the
> > event_timer_adapter_test autotest; the
> > -Werror=missing-field-initializers option causes the compiler to emit
> > messages like "error: missing initializer for field ‘priority’ of
> > ‘struct <anonymous>’" in several places.
> >
> > Add -Wno-missing-field-initializers to the test's CFLAGS to allow the
> > current syntax if we are using GCC 5.0 or lower.
> >
> > Signed-off-by: Erik Gabriel Carrillo <erik.g.carrillo@intel.com>
> > ---
> > test/test/Makefile | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/test/test/Makefile b/test/test/Makefile index
> > 2630ab4..2011857 100644
> > --- a/test/test/Makefile
> > +++ b/test/test/Makefile
> > @@ -211,6 +211,7 @@ CFLAGS_test_memcpy_perf.o +=
> > -fno-var-tracking-assignments # designated initializers.
> > ifeq ($(shell test $(GCC_VERSION) -le 50 && echo 1), 1)
> > CFLAGS_test_eventdev_sw.o += -Wno-missing-field-initializers
> > +CFLAGS_test_event_timer_adapter.o += -Wno-missing-field-initializers
> > endif
> > endif
> > endif
>
> Why not fix the code rather than supressing the warning??
The -Wmissing-field-initializers option is supposed to not warn about designated initializers:
https://gcc.gnu.org/onlinedocs/gcc-4.8.5/gcc/Warning-Options.html#index-Wmissing-field-initializers-473
The code being flagged uses designated initializers, but the structures being initialized contain anonymous structs, and -Wmissing-field-initializers seems to not handle this properly in GCC 4.8.5. In fact, it emits false positives about members that were explicitly initialized, and omits warnings about some that weren't.
Since designated initializers should be allowed, and the proposed fix only suppresses the one warning in few cases, I think it makes sense.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [dpdk-dev] [PATCH v2 1/1] test: fix build with GCC 4.8.5
2018-05-04 21:38 [dpdk-dev] [PATCH v1 1/1] test: fix build with GCC 4.8.5 Erik Gabriel Carrillo
2018-05-05 3:17 ` Jerin Jacob
2018-05-05 4:55 ` Stephen Hemminger
@ 2018-05-07 19:12 ` Erik Gabriel Carrillo
2018-05-09 9:07 ` Jerin Jacob
2018-12-03 16:21 ` [dpdk-dev] [PATCH v2] app/eventdev: detect deadlock for timer event producer Erik Gabriel Carrillo
2018-12-03 17:48 ` [dpdk-dev] [PATCH v3] " Erik Gabriel Carrillo
4 siblings, 1 reply; 9+ messages in thread
From: Erik Gabriel Carrillo @ 2018-05-07 19:12 UTC (permalink / raw)
To: jerin.jacob; +Cc: dev
Build errors occur on CentOS 7 with GCC 4.8.5 20150623 in the
event_timer_adapter_test autotest; the
-Werror=missing-field-initializers option causes the compiler to emit
messages like "error: missing initializer for field ‘priority’ of
‘struct <anonymous>’" in several places.
Add -Wno-missing-field-initializers to the test's CFLAGS to allow the
current syntax if we are using GCC 5.0 or lower.
Fixes: d1f3385d0076 ("test: add event timer adapter auto-test")
Signed-off-by: Erik Gabriel Carrillo <erik.g.carrillo@intel.com>
Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
---
v2:
- Add the 'Fixes' tag. (Jerin)
test/test/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/test/test/Makefile b/test/test/Makefile
index 2630ab4..2011857 100644
--- a/test/test/Makefile
+++ b/test/test/Makefile
@@ -211,6 +211,7 @@ CFLAGS_test_memcpy_perf.o += -fno-var-tracking-assignments
# designated initializers.
ifeq ($(shell test $(GCC_VERSION) -le 50 && echo 1), 1)
CFLAGS_test_eventdev_sw.o += -Wno-missing-field-initializers
+CFLAGS_test_event_timer_adapter.o += -Wno-missing-field-initializers
endif
endif
endif
--
2.6.4
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [dpdk-dev] [PATCH v2 1/1] test: fix build with GCC 4.8.5
2018-05-07 19:12 ` [dpdk-dev] [PATCH v2 " Erik Gabriel Carrillo
@ 2018-05-09 9:07 ` Jerin Jacob
0 siblings, 0 replies; 9+ messages in thread
From: Jerin Jacob @ 2018-05-09 9:07 UTC (permalink / raw)
To: Erik Gabriel Carrillo; +Cc: dev
-----Original Message-----
> Date: Mon, 7 May 2018 14:12:52 -0500
> From: Erik Gabriel Carrillo <erik.g.carrillo@intel.com>
> To: jerin.jacob@caviumnetworks.com
> CC: dev@dpdk.org
> Subject: [PATCH v2 1/1] test: fix build with GCC 4.8.5
> X-Mailer: git-send-email 1.7.10
>
> Build errors occur on CentOS 7 with GCC 4.8.5 20150623 in the
> event_timer_adapter_test autotest; the
> -Werror=missing-field-initializers option causes the compiler to emit
> messages like "error: missing initializer for field ‘priority’ of
> ‘struct <anonymous>’" in several places.
>
> Add -Wno-missing-field-initializers to the test's CFLAGS to allow the
> current syntax if we are using GCC 5.0 or lower.
>
> Fixes: d1f3385d0076 ("test: add event timer adapter auto-test")
>
> Signed-off-by: Erik Gabriel Carrillo <erik.g.carrillo@intel.com>
> Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Applied to dpdk-next-eventdev/master. Thanks.
> ---
>
> v2:
> - Add the 'Fixes' tag. (Jerin)
>
> test/test/Makefile | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/test/test/Makefile b/test/test/Makefile
> index 2630ab4..2011857 100644
> --- a/test/test/Makefile
> +++ b/test/test/Makefile
> @@ -211,6 +211,7 @@ CFLAGS_test_memcpy_perf.o += -fno-var-tracking-assignments
> # designated initializers.
> ifeq ($(shell test $(GCC_VERSION) -le 50 && echo 1), 1)
> CFLAGS_test_eventdev_sw.o += -Wno-missing-field-initializers
> +CFLAGS_test_event_timer_adapter.o += -Wno-missing-field-initializers
> endif
> endif
> endif
> --
> 2.6.4
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* [dpdk-dev] [PATCH v2] app/eventdev: detect deadlock for timer event producer
2018-05-04 21:38 [dpdk-dev] [PATCH v1 1/1] test: fix build with GCC 4.8.5 Erik Gabriel Carrillo
` (2 preceding siblings ...)
2018-05-07 19:12 ` [dpdk-dev] [PATCH v2 " Erik Gabriel Carrillo
@ 2018-12-03 16:21 ` Erik Gabriel Carrillo
2018-12-03 17:48 ` [dpdk-dev] [PATCH v3] " Erik Gabriel Carrillo
4 siblings, 0 replies; 9+ messages in thread
From: Erik Gabriel Carrillo @ 2018-12-03 16:21 UTC (permalink / raw)
To: jerin.jacob; +Cc: pbhagavatula, dev
If timer events get dropped for some reason, the thread that launched
producer and worker cores will never exit, because the deadlock check
doesn't currently apply to the event timer adapter case. This commit
fixes this.
Fixes: d008f20bce23 ("app/eventdev: add event timer adapter as a
producer")
Signed-off-by: Erik Gabriel Carrillo <erik.g.carrillo@intel.com>
---
v2:
- Add a fixline to commit message
app/test-eventdev/test_perf_common.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/app/test-eventdev/test_perf_common.c b/app/test-eventdev/test_perf_common.c
index 8618775..f99a6a6 100644
--- a/app/test-eventdev/test_perf_common.c
+++ b/app/test-eventdev/test_perf_common.c
@@ -327,7 +327,8 @@ perf_launch_lcores(struct evt_test *test, struct evt_options *opt,
}
if (new_cycles - dead_lock_cycles > dead_lock_sample &&
- opt->prod_type == EVT_PROD_TYPE_SYNT) {
+ (opt->prod_type == EVT_PROD_TYPE_SYNT ||
+ opt->prod_type == EVT_PROD_TYPE_EVENT_TIMER_ADPTR)) {
remaining = t->outstand_pkts - processed_pkts(t);
if (dead_lock_remaining == remaining) {
rte_event_dev_dump(opt->dev_id, stdout);
--
2.6.4
^ permalink raw reply [flat|nested] 9+ messages in thread
* [dpdk-dev] [PATCH v3] app/eventdev: detect deadlock for timer event producer
2018-05-04 21:38 [dpdk-dev] [PATCH v1 1/1] test: fix build with GCC 4.8.5 Erik Gabriel Carrillo
` (3 preceding siblings ...)
2018-12-03 16:21 ` [dpdk-dev] [PATCH v2] app/eventdev: detect deadlock for timer event producer Erik Gabriel Carrillo
@ 2018-12-03 17:48 ` Erik Gabriel Carrillo
2018-12-16 16:59 ` Jerin Jacob Kollanukkaran
4 siblings, 1 reply; 9+ messages in thread
From: Erik Gabriel Carrillo @ 2018-12-03 17:48 UTC (permalink / raw)
To: jerin.jacob; +Cc: dev
If timer events get dropped for some reason, the thread that launched
producer and worker cores will never exit, because the deadlock check
doesn't currently apply to the event timer adapter case. This commit
fixes this.
Fixes: d008f20bce23 ("app/eventdev: add event timer adapter as a
producer")
Signed-off-by: Erik Gabriel Carrillo <erik.g.carrillo@intel.com>
Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
---
v3:
- Forgot to add Jerin's ack line.
v2:
- Add a fixline to commit message (Jerin)
app/test-eventdev/test_perf_common.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/app/test-eventdev/test_perf_common.c b/app/test-eventdev/test_perf_common.c
index 8618775..f99a6a6 100644
--- a/app/test-eventdev/test_perf_common.c
+++ b/app/test-eventdev/test_perf_common.c
@@ -327,7 +327,8 @@ perf_launch_lcores(struct evt_test *test, struct evt_options *opt,
}
if (new_cycles - dead_lock_cycles > dead_lock_sample &&
- opt->prod_type == EVT_PROD_TYPE_SYNT) {
+ (opt->prod_type == EVT_PROD_TYPE_SYNT ||
+ opt->prod_type == EVT_PROD_TYPE_EVENT_TIMER_ADPTR)) {
remaining = t->outstand_pkts - processed_pkts(t);
if (dead_lock_remaining == remaining) {
rte_event_dev_dump(opt->dev_id, stdout);
--
2.6.4
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [dpdk-dev] [PATCH v3] app/eventdev: detect deadlock for timer event producer
2018-12-03 17:48 ` [dpdk-dev] [PATCH v3] " Erik Gabriel Carrillo
@ 2018-12-16 16:59 ` Jerin Jacob Kollanukkaran
0 siblings, 0 replies; 9+ messages in thread
From: Jerin Jacob Kollanukkaran @ 2018-12-16 16:59 UTC (permalink / raw)
To: jerin.jacob, erik.g.carrillo; +Cc: dev
On Mon, 2018-12-03 at 11:48 -0600, Erik Gabriel Carrillo wrote:
> If timer events get dropped for some reason, the thread that launched
> producer and worker cores will never exit, because the deadlock check
> doesn't currently apply to the event timer adapter case. This commit
> fixes this.
>
> Fixes: d008f20bce23 ("app/eventdev: add event timer adapter as a
> producer")
>
> Signed-off-by: Erik Gabriel Carrillo <erik.g.carrillo@intel.com>
> Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Applied to dpdk-next-eventdev/master. Thanks.
> ---
> v3:
> - Forgot to add Jerin's ack line.
> v2:
> - Add a fixline to commit message (Jerin)
>
> app/test-eventdev/test_perf_common.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/app/test-eventdev/test_perf_common.c b/app/test-
> eventdev/test_perf_common.c
> index 8618775..f99a6a6 100644
> --- a/app/test-eventdev/test_perf_common.c
> +++ b/app/test-eventdev/test_perf_common.c
> @@ -327,7 +327,8 @@ perf_launch_lcores(struct evt_test *test, struct
> evt_options *opt,
> }
>
> if (new_cycles - dead_lock_cycles > dead_lock_sample
> &&
> - opt->prod_type == EVT_PROD_TYPE_SYNT)
> {
> + (opt->prod_type == EVT_PROD_TYPE_SYNT ||
> + opt->prod_type ==
> EVT_PROD_TYPE_EVENT_TIMER_ADPTR)) {
> remaining = t->outstand_pkts -
> processed_pkts(t);
> if (dead_lock_remaining == remaining) {
> rte_event_dev_dump(opt->dev_id,
> stdout);
> --
> 2.6.4
>
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2018-12-16 16:59 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-04 21:38 [dpdk-dev] [PATCH v1 1/1] test: fix build with GCC 4.8.5 Erik Gabriel Carrillo
2018-05-05 3:17 ` Jerin Jacob
2018-05-05 4:55 ` Stephen Hemminger
2018-05-07 18:15 ` Carrillo, Erik G
2018-05-07 19:12 ` [dpdk-dev] [PATCH v2 " Erik Gabriel Carrillo
2018-05-09 9:07 ` Jerin Jacob
2018-12-03 16:21 ` [dpdk-dev] [PATCH v2] app/eventdev: detect deadlock for timer event producer Erik Gabriel Carrillo
2018-12-03 17:48 ` [dpdk-dev] [PATCH v3] " Erik Gabriel Carrillo
2018-12-16 16:59 ` Jerin Jacob Kollanukkaran
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).