Skip to content
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

[Android] Log kernel ThreadId instead pthread_self #15263

Merged
merged 1 commit into from Jan 16, 2019
Merged

Conversation

peak3d
Copy link
Contributor

@peak3d peak3d commented Jan 15, 2019

Description

Log kernel TID in log to make it compareable to android tools like top / systrace.

Motivation and Context

Make debugging more transparent

How Has This Been Tested?

AFTV4K, start kodi / read kodi.log

Types of change

  • Bug fix (non-breaking change which fixes an issue)
  • Clean up (non-breaking change which removes non-working, unmaintained functionality)
  • Improvement (non-breaking change which improves existing functionality)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that will cause existing functionality to change)
  • Cosmetic change (non-breaking change that doesn't touch code)
  • None of the above (please explain below)

@peak3d peak3d added this to the Leia 18.0-Final milestone Jan 15, 2019
@peak3d peak3d merged commit 635d178 into xbmc:master Jan 16, 2019
@peak3d peak3d deleted the tid branch January 16, 2019 13:02
MartijnKaijser pushed a commit to MartijnKaijser/xbmc that referenced this pull request Jan 22, 2019
[Android] Log kernel ThreadId instead pthread_self
}

bool CThread::IsCurrentThread(const ThreadIdentifier tid)
{
#if defined(TARGET_ANDROID)
return gettid() == tid;
Copy link
Member

Choose a reason for hiding this comment

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

https://forum.kodi.tv/showthread.php?tid=339983 <- any chance this might go wrong?

Copy link
Contributor Author

@peak3d peak3d Feb 2, 2019

Choose a reason for hiding this comment

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

Refering to the logs it doesn't seem to be an issue caused by this PR, the thread ids are increasing, no resuage there. So I would say no

peak3d added a commit to peak3d/xbmc that referenced this pull request Feb 4, 2019
MartijnKaijser added a commit that referenced this pull request Feb 4, 2019
[Threads] revert #15263, log tid instead posix thread
nsenica pushed a commit to PIPplware/xbmc that referenced this pull request Feb 21, 2019
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.

None yet

2 participants