Skip to content

Conversation

@andyross
Copy link
Contributor

[Another one not for 1.14. Pushed for others to test with. Adds yet more detail to spinlock assertions.]

Catching the error in a function is nice, but one really wants to know
where it happened, and where the recursive lock was taken (or where
the unowned release was actually grabbed). Add a layer of macro
indirection to catch this info and log it with the assertion.

Signed-off-by: Andy Ross [email protected]

Catching the error in a function is nice, but one really wants to know
where it happened, and where the recursive lock was taken (or where
the unowned release was actually grabbed).  Add a layer of macro
indirection to catch this info and log it with the assertion.

Signed-off-by: Andy Ross <[email protected]>
@codecov-io
Copy link

Codecov Report

Merging #14286 into master will increase coverage by <.01%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #14286      +/-   ##
==========================================
+ Coverage   51.97%   51.98%   +<.01%     
==========================================
  Files         308      308              
  Lines       45512    45518       +6     
  Branches    10546    10547       +1     
==========================================
+ Hits        23657    23662       +5     
  Misses      17055    17055              
- Partials     4800     4801       +1
Impacted Files Coverage Δ
include/spinlock.h 75% <66.66%> (+25%) ⬆️
kernel/work_q.c 95.83% <0%> (-2.09%) ⬇️

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 f1810c8...f6d5de3. Read the comment docs.

@andyross
Copy link
Contributor Author

Folded into #13800

@andyross andyross closed this Mar 13, 2019
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.

3 participants