Skip to content

Conversation

@R4ken
Copy link
Contributor

@R4ken R4ken commented Sep 1, 2025

JIRA: RTOS-1088

Description

Add handling of missing CLOCK_THREAD_CPUTIME_ID flag in clock_gettime function.
This allows apps to know how much time did a thread spend on a CPU.

Motivation and Context

Missing functionality useful for porting apps

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (refactoring, style fixes, git/CI config, submodule management, no code logic changes)

How Has This Been Tested?

  • Already covered by automatic testing.
  • New test added: (add PR link here).
  • Tested by hand on: (ia32-generic-qemu, armv7a9-zynq7000-qemu)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing linter checks and tests passed.
  • My changes generate no new compilation warnings for any of the targets.

Special treatment

Add getThreadCpuTime function based on syscall with same name

JIRA: RTOS-1088
Implement handling of missing flag in clock_gettime

JIRA: RTOS-1088
@R4ken R4ken force-pushed the jrak/threadCpuTime branch from 3b6b4f7 to ba96e09 Compare September 2, 2025 13:15
@R4ken R4ken requested a review from Darchiv September 8, 2025 14:32
@oI0ck oI0ck self-assigned this Nov 28, 2025
Copy link
Member

@oI0ck oI0ck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@oI0ck oI0ck marked this pull request as ready for review December 1, 2025 15:16
@oI0ck
Copy link
Member

oI0ck commented Dec 1, 2025

Merge after phoenix-rtos/phoenix-rtos-kernel#692

@oI0ck oI0ck requested a review from agkaminski December 2, 2025 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants