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

dump: Show task comm early #2064

Merged

Conversation

Snorch
Copy link
Member

@Snorch Snorch commented Jan 25, 2023

When error happens on file dumping stage the only information about the task we dumping is its PID. For debug purpose show task's @comm early.

It proves useful when trying to understand which of dumped applications is "guilty" in brokern dump when pid is not there anymore.

Signed-off-by: Cyrill Gorcunov [email protected]
Signed-off-by: Pavel Tikhomirov [email protected]

--

This is a port of https://src.openvz.org/projects/OVZ/repos/criu/commits/487a62763
CC @cyrillos

When error happens on file dumping stage the only information about the
task we dumping is its PID. For debug purpose show task's @comm early.

It proves useful when trying to understand which of dumped applications
is "guilty" in brokern dump when pid is not there anymore.

Signed-off-by: Cyrill Gorcunov <[email protected]>
Signed-off-by: Pavel Tikhomirov <[email protected]>
@Snorch Snorch force-pushed the dump-show-task-comm-early branch from 49a176d to 36e4bd5 Compare February 24, 2023 04:55
@codecov-commenter
Copy link

Codecov Report

Base: 70.92% // Head: 70.94% // Increases project coverage by +0.02% 🎉

Coverage data is based on head (92e3838) compared to base (6b95196).
Patch coverage: 92.00% of modified lines in pull request are covered.

❗ Current head 92e3838 differs from pull request most recent head 36e4bd5. Consider uploading reports for the commit 36e4bd5 to get more accurate results

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@             Coverage Diff              @@
##           criu-dev    #2064      +/-   ##
============================================
+ Coverage     70.92%   70.94%   +0.02%     
============================================
  Files           132      133       +1     
  Lines         32620    32640      +20     
============================================
+ Hits          23135    23156      +21     
+ Misses         9485     9484       -1     
Impacted Files Coverage Δ
criu/seize.c 61.52% <90.90%> (+1.68%) ⬆️
criu/cr-dump.c 75.74% <100.00%> (ø)
criu/include/criu-log.h 100.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@rst0git rst0git left a comment

Choose a reason for hiding this comment

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

LGTM

@rst0git rst0git merged commit b0de6f4 into checkpoint-restore:criu-dev Feb 26, 2023
criu/seize.c Show resolved Hide resolved
criu/seize.c Show resolved Hide resolved
criu/seize.c Show resolved Hide resolved
Snorch added a commit to Snorch/criu that referenced this pull request Feb 27, 2023
This addresses Andrei comments from
checkpoint-restore#2064

- Add comment about '\n' fixing
- Replace ret with more self explainting is_read
- Print warings if we failed to print comm for some reason

Signed-off-by: Pavel Tikhomirov <[email protected]>
adrianreber pushed a commit that referenced this pull request Feb 28, 2023
This addresses Andrei comments from
#2064

- Add comment about '\n' fixing
- Replace ret with more self explainting is_read
- Print warings if we failed to print comm for some reason

Signed-off-by: Pavel Tikhomirov <[email protected]>
avagin pushed a commit to avagin/criu that referenced this pull request Mar 13, 2023
This addresses Andrei comments from
checkpoint-restore#2064

- Add comment about '\n' fixing
- Replace ret with more self explainting is_read
- Print warings if we failed to print comm for some reason

Signed-off-by: Pavel Tikhomirov <[email protected]>
avagin pushed a commit that referenced this pull request Apr 16, 2023
This addresses Andrei comments from
#2064

- Add comment about '\n' fixing
- Replace ret with more self explainting is_read
- Print warings if we failed to print comm for some reason

Signed-off-by: Pavel Tikhomirov <[email protected]>
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.

5 participants