Skip to content

logging: add backend for xtensa simulator #14027

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 1 commit into from
Mar 4, 2019

Conversation

nashif
Copy link
Member

@nashif nashif commented Mar 4, 2019

Add backend for the xtensa simulator.

Fixes #10164

@codecov-io
Copy link

codecov-io commented Mar 4, 2019

Codecov Report

Merging #14027 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #14027   +/-   ##
=======================================
  Coverage   52.24%   52.24%           
=======================================
  Files         307      307           
  Lines       45467    45467           
  Branches    10525    10525           
=======================================
  Hits        23752    23752           
  Misses      16913    16913           
  Partials     4802     4802

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0ef2408...f3802a7. Read the comment docs.

static int char_out(u8_t *data, size_t length, void *ctx)
{
for (size_t i = 0; i < length; i++) {
preprint_char(data[i]);
Copy link
Contributor

Choose a reason for hiding this comment

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

write simcall can output the whole buffer in one invocation

Copy link
Member Author

Choose a reason for hiding this comment

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

thanks, addressed.

@nashif nashif force-pushed the xtensa_sim_log_backend branch from d1484da to f50e69e Compare March 4, 2019 03:28
Copy link
Collaborator

@nordic-krch nordic-krch left a comment

Choose a reason for hiding this comment

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

moving buffer size to kconfig would be nice.

#include <logging/log_output.h>
#include <xtensa/simcall.h>

#define _STDOUT_BUF_SIZE 256
Copy link
Collaborator

Choose a reason for hiding this comment

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

if there a potential RAM shortages on xtensa boards this should be moved to kconfig.

Add backend for the xtensa simulator.

Fixes zephyrproject-rtos#10164

Signed-off-by: Anas Nashif <[email protected]>
@nashif nashif force-pushed the xtensa_sim_log_backend branch from f50e69e to f3802a7 Compare March 4, 2019 14:17
@nashif nashif merged commit 5cf4995 into zephyrproject-rtos:master Mar 4, 2019
@nashif nashif deleted the xtensa_sim_log_backend branch June 14, 2019 19:32
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