https://bugs.linaro.org/show_bug.cgi?id=1879

--- Comment #18 from Carl Wallen <carl.wal...@nokia.com> ---
Created attachment 398
  --> https://bugs.linaro.org/attachment.cgi?id=398&action=edit
ODP basic queue test

Added odp_queue_test.c to show a failing test case where ODP ordered queues
deadlock. This test was hacked together from various files and has not been
throuroughly tested, but it should showcase the faulty behaviour.
Usage:
$> odp_queue_test --help
Usage: odp_queue_test APPL-OPTIONS
  E.g. odp_queue_test -c 0xf -t

Open Data Plane example application.

Mandatory OPTIONS:
  -c, --coremask          Select the cores to use, hexadecimal
  -p, --process-per-core  Running ODP with one process per core.
  -t, --thread-per-core   Running ODP with one thread per core.
    Select EITHER -p OR -t, but not both!

Optional [APPL-OPTIONS]
  -h, --help          Display help and exit.


To see the error run on one core vs e.g 2 cores:
1 core:
test-Q:98: type:parallel          1 events      |  Core01:         1 events    
|  this event scheduled:         1 times
test-Q:99: type:ordered           1 events      |  Core01:         5 events    
|  this event scheduled:         1 times
test-Q:97: type:atomic            1 events      |  Core01:        13 events    
|  this event scheduled:         1 times
test-Q:99: type:ordered     1000001 events      |  Core01:   2999994 events    
|  this event scheduled:    333334 times
test-Q:98: type:parallel    1000001 events      |  Core01:   3000002 events    
|  this event scheduled:    333336 times
test-Q:97: type:atomic      1000001 events      |  Core01:   3000010 events    
|  this event scheduled:    333335 times
test-Q:99: type:ordered     2000001 events      |  Core01:   5999994 events    
|  this event scheduled:    666670 times
test-Q:98: type:parallel    2000001 events      |  Core01:   6000002 events    
|  this event scheduled:    666669 times
test-Q:97: type:atomic      2000001 events      |  Core01:   6000010 events    
|  this event scheduled:    666668 times

... continue forever ...


2 cores:
$> odp_queue_test -c 0x3 -t

Entering the event dispatch loop(forever=0) on core 1
Entering the event dispatch loop(forever=0) on core 2
test-Q:99: type:ordered           1 events      |  Core02:         1 events    
|  this event scheduled:         1 times
test-Q:97: type:atomic            1 events      |  Core02:         5 events    
|  this event scheduled:         1 times
test-Q:98: type:parallel          1 events      |  Core01:         1 events    
|  this event scheduled:         1 times

*** Gets stuck ***

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
lng-odp mailing list
lng-odp@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to