Re: [DOVETAIL] now tracking v5.10

2021-01-03 Thread chensong via Xenomai
It's working, many thanks. BR chensong On 2020年12月29日 11:06, Chen, Hongzhan wrote: Hi chensong Let us switch to and focus on CXP. Actually https://github.com/hongzhanchen/xenomai.git is not based on https://lab.xenomai.org/xenomai-rpm.git/log/?h=for-upstream/dovetail which is base of CXP

Re: Mode Switch

2021-01-03 Thread steve freyder via Xenomai
OK, so then my theory about it having to do with launching a printf helper must be wrong (maybe that only happens on the original thread).  I don't recall whether you had a flush call after your printf though... On 1/3/2021 4:22 PM, Leandro Bucci wrote: I understand, but it's strange because

Re: Mode Switch

2021-01-03 Thread Leandro Bucci via Xenomai
I understand, but it's strange because if I do a printf inside the task I always have MSW = 2. Yes maybe Philippe can help. Thank you too Il dom 3 gen 2021, 23:16 steve freyder ha scritto: > Might need some help from Philippe on this one but my thinking says that > thread creation happens in

Re: Mode Switch

2021-01-03 Thread steve freyder via Xenomai
Might need some help from Philippe on this one but my thinking says that thread creation happens in secondary mode, so there's gotta be at least *one* mode switch on the way to becoming a cobalt thread running in primary mode, perhaps the second one has to do with launching the background

Re: Mode Switch

2021-01-03 Thread Leandro Bucci via Xenomai
But in the task I don't do any printf, how is it possible that MSW = 2? Il dom 3 gen 2021, 23:00 steve freyder ha scritto: > Each time I would do something like this: > > > printf(...) ; > > fflush(stdout) ; > > rt_task_sleep(1e9/5) ; > > rt_task_inquire(...) ; > > > msw incremented by 1, csw

Re: Mode Switch

2021-01-03 Thread steve freyder via Xenomai
Each time I would do something like this: printf(...) ; fflush(stdout) ; rt_task_sleep(1e9/5) ; rt_task_inquire(...) ; msw incremented by 1, csw would increment by 2. On 1/3/2021 2:29 PM, Leandro Bucci via Xenomai wrote: Hi, I have a strange behavior regarding the "mode switch". In the

Mode Switch

2021-01-03 Thread Leandro Bucci via Xenomai
Hi, I have a strange behavior regarding the "mode switch". In the attached code, the task should never switch to the Linux domain, but instead I have a value of MSW = 2. How is it possible? Even if I do a printf in the task I always get MSW = 2. I can't understand where the problem is. #include

Re: domain switch

2021-01-03 Thread Leandro Bucci via Xenomai
Sorry for the inconvenience, I tried to write this code to report domain changes (or mode switch): ## #include #include #include #include #include #include RT_TASK task; void task_body(void *arg) { RT_TASK_INFO info;

Re: [CXP] some questions about "Common Xenomai Platform"

2021-01-03 Thread Philippe Gerum via Xenomai
Hailongliu via Xenomai writes: > Hi, > > I learned the "Common Xenomai Platform" program from this mail-list and wiki > of project Xenomai. This is a very attractive plan, as it will port Xenomai > for > recent LTS kernel(v5.10). > > I noticed that March 31, 2021 is the deadline for "CXP",

Re: [CXP][RFC] pick POSIX/cobalt for the common user API

2021-01-03 Thread Philippe Gerum via Xenomai
Philippe Gerum writes: > The common Xenomai platform specification is about defining the > commonalities among future Xenomai releases starting from 3.3, including > the Xenomai 4 series based on a next generation (EVL) core. A common API > available to applications for issuing requests to the

Re: domain switch

2021-01-03 Thread Leandro Bucci via Xenomai
perfect thank you so much for the explanation Il dom 3 gen 2021, 12:06 Philippe Gerum ha scritto: > > Leandro Bucci writes: > > > is it possible to have the same thing for tasks instead of threads? > > > > task == thread > > > Il dom 3 gen 2021, 11:31 Philippe Gerum ha scritto: > > > >> > >>

Re: domain switch

2021-01-03 Thread Philippe Gerum via Xenomai
Leandro Bucci writes: > is it possible to have the same thing for tasks instead of threads? > task == thread > Il dom 3 gen 2021, 11:31 Philippe Gerum ha scritto: > >> >> steve freyder via Xenomai writes: >> >> > Right. >> > >> > >> > AKA, "mode switch", a switch from "primary mode" to

Re: domain switch

2021-01-03 Thread Leandro Bucci via Xenomai
is it possible to have the same thing for tasks instead of threads? Il dom 3 gen 2021, 11:31 Philippe Gerum ha scritto: > > steve freyder via Xenomai writes: > > > Right. > > > > > > AKA, "mode switch", a switch from "primary mode" to "secondary mode", > > or vice versa. > > > > One place you

Re: domain switch

2021-01-03 Thread Philippe Gerum via Xenomai
steve freyder via Xenomai writes: > Right. > > > AKA, "mode switch", a switch from "primary mode" to "secondary mode", > or vice versa. > > One place you can find that information is in: > > /proc/xenomai/sched/acct > > there are two fields MSW, and CSW which count mode/context switches >

[CXP] some questions about "Common Xenomai Platform"

2021-01-03 Thread Hailongliu via Xenomai
Hi, I learned the "Common Xenomai Platform" program from this mail-list and wiki of project Xenomai. This is a very attractive plan, as it will port Xenomai for recent LTS kernel(v5.10). I noticed that  March 31, 2021 is the deadline for "CXP", dose that mean we can expect the new features at