Re: Re: pthread_getattr_np does not work

2017-09-26 Thread xuelin.t...@qkmtech.com
: Joel Sherrill Date: 2017-09-26 23:16 To: xuelin.t...@qkmtech.com CC: users@rtems.org; Sebastian Huber Subject: Re: Re: pthread_getattr_np does not work Yes. Then pthread_create a thread to use that stack, let it run, and make sure pthread_getattr_np reports things correctly. On Tue, Sep 26, 2017 at 6

Re: Re: pthread_getattr_np does not work

2017-09-26 Thread Joel Sherrill
rtems.org; Sebastian Huber > > *Subject:* Re: Re: pthread_getattr_np does not work > I would suggest adding a test of another thread with a user provided stack > space that is properly aligned (e.g. array of double of minimum stack size > divided by sizeof(double)). This would give you

Re: Re: pthread_getattr_np does not work

2017-09-26 Thread xuelin.t...@qkmtech.com
Huber Subject: Re: Re: pthread_getattr_np does not work I would suggest adding a test of another thread with a user provided stack space that is properly aligned (e.g. array of double of minimum stack size divided by sizeof(double)). This would give you known address range and size for that thread

Re: Re: pthread_getattr_np does not work

2017-09-25 Thread Joel Sherrill
Sebastian Huber > > *Subject:* Re: Re: pthread_getattr_np does not work > No. But you are welcome to submit patches so the behavior matches Linux. > > On Sep 24, 2017 1:09 AM, "xuelin.tian" wrote: > >> So, is there a substitute function for this in RTEMS, w

Re: Re: pthread_getattr_np does not work

2017-09-24 Thread xuelin.t...@qkmtech.com
OK, I will try to do this. Best wishes, xuelin.t...@qkmtech.com From: Joel Sherrill Date: 2017-09-24 21:32 To: xuelin.tian CC: rtems-us...@rtems.org; Sebastian Huber Subject: Re: Re: pthread_getattr_np does not work No. But you are welcome to submit patches so the behavior matches Linux. On

Re: Re: pthread_getattr_np does not work

2017-09-24 Thread Joel Sherrill
> *From: * "Joel Sherrill"; > *Date: * Sun, Sep 24, 2017 00:15 AM > *To: * "xuelin.tian"; > *Cc: * "Sebastian Huber"; " > users@rtems.org"; > *Subject: * Re: Re: pthread_getattr_np does not work > > > > On Fri, Sep 22, 2017 at 9:26

Re: Re: pthread_getattr_np does not work

2017-09-23 Thread xuelin.tian
users@rtems.org"; Subject: Re: Re: pthread_getattr_np does not work On Fri, Sep 22, 2017 at 9:26 PM, xuelin.tian wrote: Thanks so much for your test. No problem. Just trying to help. The parts of this structure I care about most are the stackaddr and stacksize (and guardsize maybe), where

Re: Re: pthread_getattr_np does not work

2017-09-23 Thread Joel Sherrill
o: * "xuelin.t...@qkmtech.com"; > *Cc: * "Sebastian Huber"; " > users@rtems.org"; > *Subject: * Re: Re: pthread_getattr_np does not work > > The test does verify the values. I don't see a specific case of creating a > thread > with a non-standard

Re: Re: pthread_getattr_np does not work

2017-09-22 Thread xuelin.tian
;Joel Sherrill"; Date: Fri, Sep 22, 2017 10:15 PM To: "xuelin.t...@qkmtech.com"; Cc: "Sebastian Huber"; "users@rtems.org"; Subject: Re: Re: pthread_getattr_np does not work The test does verify the values. I don't see a specific case of creating a thread

Re: Re: pthread_getattr_np does not work

2017-09-22 Thread Joel Sherrill
017 at 4:04 AM, xuelin.t...@qkmtech.com < xuelin.t...@qkmtech.com> wrote: > OK, no problem, thanks anyway. > > -- > Best wishes, > xuelin.t...@qkmtech.com > > > *From:* Sebastian Huber > *Date:* 2017-09-22 16:58 > *To:* xuelin.t...@qkmtech.com;

Re: Re: pthread_getattr_np does not work

2017-09-22 Thread xuelin.t...@qkmtech.com
OK, no problem, thanks anyway. Best wishes, xuelin.t...@qkmtech.com From: Sebastian Huber Date: 2017-09-22 16:58 To: xuelin.t...@qkmtech.com; users@rtems.org Subject: Re: pthread_getattr_np does not work On 22/09/17 10:55, xuelin.t...@qkmtech.com wrote: > OK, I will try to do some fix

Re: pthread_getattr_np does not work

2017-09-22 Thread Sebastian Huber
On 22/09/17 10:55, xuelin.t...@qkmtech.com wrote: OK, I will try to do some fix on this function. And if Sherrill and you have time, please take some time on this. Thanks a lot. No, sorry. I have no time to fix this. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 P

Re: Re: pthread_getattr_np does not work

2017-09-22 Thread xuelin.t...@qkmtech.com
OK, I will try to do some fix on this function. And if Sherrill and you have time, please take some time on this. Thanks a lot. Best wishes, xuelin.t...@qkmtech.com From: Sebastian Huber Date: 2017-09-22 16:48 To: xuelin.t...@qkmtech.com; users@rtems.org Subject: Re: pthread_getattr_np does

Re: pthread_getattr_np does not work

2017-09-22 Thread Sebastian Huber
On 22/09/17 10:43, xuelin.t...@qkmtech.com wrote: >> >> So, how can I modify the source code in rtems to let this function >> work? Thanks a lot. > You have to edit: > cpukit/posix/src/pthreadgetattrnp.c Yes, I know this. I just do not know how to do this. The implementation of pthread_getattr

Re: Re: pthread_getattr_np does not work

2017-09-22 Thread xuelin.t...@qkmtech.com
To: xuelin.t...@qkmtech.com; users@rtems.org Subject: Re: pthread_getattr_np does not work On 22/09/17 10:24, xuelin.t...@qkmtech.com wrote: > I found out that there is a test in 4.12-master about > pthread_getattr_np, so I compiled that one and ran it. > >

Re: pthread_getattr_np does not work

2017-09-22 Thread Sebastian Huber
On 22/09/17 10:24, xuelin.t...@qkmtech.com wrote: I found out that there is a test in 4.12-master about pthread_getattr_np, so I compiled that one and ran it. The result shows that this function works well, like this * ***

Re: Re: pthread_getattr_np does not work

2017-09-22 Thread xuelin.t...@qkmtech.com
14:45 To: Sebastian Huber; users@rtems.org Subject: Re: Re: pthread_getattr_np does not work I need to get thread attributes through this function. ** #define __GNU_VISIBLE #include void test_thread (guint8 **staddr, size_t

Re: Re: pthread_getattr_np does not work

2017-09-20 Thread xuelin.t...@qkmtech.com
...@qkmtech.com From: Sebastian Huber Date: 2017-09-20 14:30 To: CC: xuelin.t...@qkmtech.com; RTEMS Subject: Re: pthread_getattr_np does not work Hello Xuelin, please answer to the mailing list. On 20/09/17 08:20, xuelin.t...@qkmtech.com wrote: > I need to get thread attributes through this funct

Re: Re: pthread_getattr_np does not work

2017-09-19 Thread xuelin.t...@qkmtech.com
Subject: Re: pthread_getattr_np does not work On 20/09/17 05:43, xuelin.t...@qkmtech.com wrote: > Dear all, > I tried to use pthread_getattr_np function to extract attrributes of > thread in rtems, but it does not work. Has anyone used this function > before? What do yo

Re: pthread_getattr_np does not work

2017-09-19 Thread Sebastian Huber
On 20/09/17 05:43, xuelin.t...@qkmtech.com wrote: Dear all, I tried to use pthread_getattr_np function to extract attrributes of thread in rtems, but it does not work. Has anyone used this function before? What do you mean with doesn't work? -- Sebastian Huber, embedded brains GmbH Address

pthread_getattr_np does not work

2017-09-19 Thread xuelin.t...@qkmtech.com
Dear all, I tried to use pthread_getattr_np function to extract attrributes of thread in rtems, but it does not work. Has anyone used this function before? Best wishes, xuelin.t...@qkmtech.com ___ users mailing list users@rtems.org http://lists.rtem