-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
posix: implement clock_getcpuclockid()
#59954
Comments
I would like to work on this issue. Can you assign it to me? @cfriedt |
Hi @jaiiarora - typically maintainers get assigned issues, but you are absolutely free to create a pull request to add this feature Thanks for your help, and I look forward to your PR |
@cfriedt Hi I am trying to implement clock_getcpuclockid() but I could not find pid_t or getpid() function that are needed for the implementation. Can you suggest me how to tackle this? |
I don't think we have I do have a draft PR to add them though :-) (#65920). In any case, probably the best way to ask for feedback on a PR before it's ready for review is to create a draft PR. The "Create PR" button in GitHub also has a drop-down menu where you can select "Create Draft PR" instead. |
@jaiiarora - I'll separate-out the declaration of typedef int pid_t;
pid_t getpid(void);
// in some c file
pid_t getpid(void)
{
return 42;
} Keep in mind, that Zephyr only (conceptually) supports a single process at any given time, so for the purposes of your PR, you can probably just ignore |
Sure. Thanks a lot @cfriedt :) |
implements clock_getcpuclockid function and adds zephyr test. Fixes zephyrproject-rtos#59954 Signed-off-by: Jai Arora <infolinesoni@gmail.com>
Hi @cfriedt. I have created a draft PR. Kindly have a look at it. Please let me know if any changes are needed. Thanks |
Hi @jaiiarora - are you on discord by any chance? Can you add me? I would be happy to give you a few pointers "offline" so you can get your draft in better shape before publishing. |
Sure. Let me ping you @cfriedt |
Implements clock_getcpuclockid function and adds zephyr test cases. Fixes zephyrproject-rtos#59954 Signed-off-by: Jai Arora <infolinesoni@gmail.com>
Hi @cfriedt. I have added the requested changes.
|
Implements clock_getcpuclockid function Fixes zephyrproject-rtos#59954 Signed-off-by: Jai Arora <infolinesoni@gmail.com>
Implements clock_getcpuclockid function Fixes zephyrproject-rtos#59954 Signed-off-by: Jai Arora <infolinesoni@gmail.com>
Implements clock_getcpuclockid function Fixes zephyrproject-rtos#59954 Signed-off-by: Jai Arora <infolinesoni@gmail.com>
Implements clock_getcpuclockid function Fixes zephyrproject-rtos#59954 Signed-off-by: Jai Arora <infolinesoni@gmail.com>
Implements clock_getcpuclockid function Fixes zephyrproject-rtos#59954 Signed-off-by: Jai Arora <infolinesoni@gmail.com>
Adds test for clock_getcpuclockid() to make sure clock_id is equal to CLOCK_PROCESS_CPUTIME_ID after a successful call Fixes zephyrproject-rtos#59954 Signed-off-by: Jai Arora <infolinesoni@gmail.com>
Adds test for clock_getcpuclockid() to make sure clock_id is equal to CLOCK_PROCESS_CPUTIME_ID after a successful call Fixes zephyrproject-rtos#59954 Signed-off-by: Jai Arora <infolinesoni@gmail.com>
Adds test for clock_getcpuclockid() to make sure clock_id is equal to CLOCK_PROCESS_CPUTIME_ID after a successful call Fixes zephyrproject-rtos#59954 Signed-off-by: Jai Arora <infolinesoni@gmail.com>
Adds test for clock_getcpuclockid() to make sure clock_id is equal to CLOCK_PROCESS_CPUTIME_ID after a successful call Fixes zephyrproject-rtos#59954 Signed-off-by: Jai Arora <infolinesoni@gmail.com>
Adds test for clock_getcpuclockid() to make sure clock_id is equal to CLOCK_PROCESS_CPUTIME_ID after a successful call Fixes #59954 Signed-off-by: Jai Arora <infolinesoni@gmail.com>
There are currently 20 missing POSIX functions with trivial implementations,
clock_getcpuclockid()
is one of them.See https://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_getcpuclockid.html
See RFC #51211 for more info.
The text was updated successfully, but these errors were encountered: