Skip to content

System stats - API addition #6821

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

Merged
merged 3 commits into from
May 21, 2018
Merged

Conversation

deepikabhavnani
Copy link

@deepikabhavnani deepikabhavnani commented May 4, 2018

Description

System Stats Addition. Dependent on previous PR's. (Commits valid post ec71e4641cd24b4d9993ebf9f487cbe24d014441)

Status : Work in progress Done

Pull request type

[ ] Fix
[ ] Refactor
[ ] New target
[X] Feature
[ ] Breaking change

@cmonr
Copy link
Contributor

cmonr commented May 7, 2018

@deepikabhavnani Is this blocked on #508?

@deepikabhavnani
Copy link
Author

@cmonr - This is not dependent on "Thread/System API addition #508" which is on Handbook. But should be merged post #6795

@deepikabhavnani deepikabhavnani requested a review from SenRamakri May 8, 2018 14:44
@deepikabhavnani deepikabhavnani mentioned this pull request May 9, 2018
@deepikabhavnani deepikabhavnani force-pushed the system_stats branch 3 times, most recently from 2e3a0d7 to f4395bc Compare May 11, 2018 15:16
@deepikabhavnani
Copy link
Author

Rebased on top of master.. No PR dependency now.

@deepikabhavnani
Copy link
Author

@SenRamakri - Please review

SenRamakri
SenRamakri previously approved these changes May 11, 2018
0xc0170
0xc0170 previously approved these changes May 14, 2018
@0xc0170
Copy link
Contributor

0xc0170 commented May 14, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented May 14, 2018

Build : SUCCESS

Build number : 1998
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/6821/

Triggering tests

/morph test
/morph uvisor-test
/morph export-build
/morph mbed2-build

@deepikabhavnani
Copy link
Author

@0xc0170 - Command used in build does not contain ALL flags enabled. Will have to re-run once @studavekar does that change.

@studavekar
Copy link
Contributor

@0xc0170 - Command used in build does not contain ALL flags enabled. Will have to re-run once @studavekar does that change.

We should be good to run trigger the build on this PR, Logs from one of the PR

https://mbed-os.s3-eu-west-1.amazonaws.com/builds/6832/PASS/DISCO_F303VC/GCC_ARM/6154fd259845423b63fd8cc6a06f4798f3dd115e_build_log_DISCO_F303VC_GCC_ARM.txt

new command line looks like mbed test --compile -m <target> -t <toolchain> -DMBED_HEAP_STATS_ENABLED=1 -DMBED_STACK_STATS_ENABLED=1 -DMBED_TRAP_ERRORS_ENABLED=1 -DMBED_ALL_STATS_ENABLED

@mbed-ci
Copy link

mbed-ci commented May 14, 2018

@mbed-ci
Copy link

mbed-ci commented May 14, 2018

@cmonr
Copy link
Contributor

cmonr commented May 14, 2018

/morph build

Rerunning to use new build parameters.

@mbed-ci
Copy link

mbed-ci commented May 14, 2018

Build : FAILURE

Build number : 2016
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/6821/

@cmonr cmonr removed the needs: CI label May 14, 2018
bulislaw
bulislaw previously approved these changes May 15, 2018
Copy link
Member

@bulislaw bulislaw left a comment

Choose a reason for hiding this comment

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

One thing I would like to add to the stats is the Mbed OS version.

@0xc0170
Copy link
Contributor

0xc0170 commented May 15, 2018

mbed OS version +1

to consider to be having in system stats if we have there mbed OS version - #6897 - having sha available or dirty flag, this might not be related to this one?

@deepikabhavnani
Copy link
Author

@bulislaw Will add Mbed OS version.

@0xc0170 - I am not sure if we can add SHA, but can look upon that in future.

deepikabhavnani added 2 commits May 15, 2018 10:17
API added to get the system information like CPU ID, compiler ID and
compiler version.
@deepikabhavnani
Copy link
Author

Rebased, added Mbed OS version and resolved Cortex-A compilation issue.

CPUID base register is available for Cortex-M processors only.
Cortex-A devices have Main ID Register, which can be used in future to
get processor info.
@deepikabhavnani
Copy link
Author

Testing build to confirm Cortex-A issues resolved.

/morph build

@mbed-ci
Copy link

mbed-ci commented May 16, 2018

Build : SUCCESS

Build number : 2037
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/6821/

Triggering tests

/morph test
/morph uvisor-test
/morph export-build
/morph mbed2-build

@mbed-ci
Copy link

mbed-ci commented May 16, 2018

@mbed-ci
Copy link

mbed-ci commented May 16, 2018

@cmonr
Copy link
Contributor

cmonr commented May 17, 2018

/morph test

@mbed-ci
Copy link

mbed-ci commented May 17, 2018

@cmonr
Copy link
Contributor

cmonr commented May 18, 2018

@0xc0170 @SenRamakri @bulislaw Are y'all alright with the updated changes?

@cmonr cmonr merged commit 97b1615 into ARMmbed:master May 21, 2018
@deepikabhavnani deepikabhavnani deleted the system_stats branch May 30, 2018 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants