Commit Graph

310 Commits

Author SHA1 Message Date
anton dunchev
28020d425a [CIS] Fix FUnixSignalGameHitchHeartBeat added mising IsStartedSuspended().
#rnx
#tests builds

[CL 29940211 by anton dunchev in ue5-main branch]
2023-11-27 13:53:21 -05:00
joe bestrotheray
fe016abe82 Fix csv profiling recursion in windows/linux platform memory
[CL 29886607 by joe bestrotheray in ue5-main branch]
2023-11-22 08:02:10 -05:00
justin marcus
a20a35a038 Fix PS5 File handle handle registry not tracking ucas file handles opened by IOStore.
- IOStore ucas handles now get freed and reopened as needed when file handle pressure is too great.
- FRegisteredFileHandle now refcounts read requests so it can handle multiple read requests with the same handle at the same time.
- Failure to reopen files is now passed back up as file read failures
- Add some additional logging for FFileHelper errors
- Add error logging explicitly for runningout of PS5 file handles
- Make file handle casts use static_cast
- PS5 file handle now returns -1 for size if fstat fails, this matches windows behavior
- FAPRHandleCache now ignores files outside of /app0.  This prevents file churn in /download0 from bloating it.
[REVIEW]

[CL 29846643 by justin marcus in ue5-main branch]
2023-11-20 14:09:28 -05:00
dan thompson
d208c49f9b Missed some minor feedback
#rb Arciel.Rekman

[CL 29724168 by dan thompson in ue5-main branch]
2023-11-14 15:53:19 -05:00
dan thompson
5c11f227fd Adding an LLM console command to associate allocations with their underlying page allocation in Unix to classify them as shared/private/unreferenced.
This also fixes the old smaps parser to not incorrectly bail before EOF if fewer bytes were provided than asked for as that's an allowable condition.

#ushell-cherrypick of 29606161 by Dan.Thompson

#ushell-cherrypick of 29607764 by Dan.Thompson
#rb arciel.rekman

[CL 29722985 by dan thompson in ue5-main branch]
2023-11-14 15:14:44 -05:00
joe bestrotheray
34d62be948 Add csv profiling to AllocVirtual and BinnedAllocFromOS on windows/unix
#rb ben.woodhouse, kaleb.morris, matt.harris

[CL 29710719 by joe bestrotheray in ue5-main branch]
2023-11-14 08:25:29 -05:00
sebastian schoner
fa929ffe50 [Backout] - CL29591063
(not backing out the fixes to structured logging itself, only its usage)

[FYI] sebastian.schoner
Original CL Desc
-----------------------------------------------------------------
Use structured logging for OutOfMemory messages

Structured logging allows to surface information contained in log lines more easily for automated processes. Out of memory errors are a common thing we'd like to detect and the current detection code has already been broken once.

This CL also contains a change to the structured log for fatal errors. Those were erroneously noted as assertion failures due to an unintended call to Debug::AssertFailed originating via copy-paste from FMsg::LogfImpl. Removing this call ensures that the new log matches the old behavior from unstructured logging (which I have manually verified).

#rb devin.doucette

[CL 29710620 by sebastian schoner in ue5-main branch]
2023-11-14 08:17:59 -05:00
james singer
bb56829c3f [Linux] Mark large allocations made by BinnedAllocFromOS as mergeable by KSM.
Notes: Pretty low risk, one line change.  Should only have impact in memory sharing on Linux servers, no client--side effect.  This change effectively restores the mergeable tagging to these types of allocations that was inadvertently lost when Gil refactored memory allocations.  Should help Juno.

[REVIEW] [at]zack.neyland
#jira UE-199974
#rb [at]Brandon.Schaefer, [at]Arciel.Rekman, [at]Zack.Neyland
#rnx

#localization none
#tests local editor to make sure we don't crash
#preferred_allowlister jeanfrancois.stamour

[CL 29660772 by james singer in ue5-main branch]
2023-11-10 18:22:40 -05:00
sebastian schoner
123032fa5b Use structured logging for OutOfMemory messages
Structured logging allows to surface information contained in log lines more easily for automated processes. Out of memory errors are a common thing we'd like to detect and the current detection code has already been broken once.

This CL also contains a change to the structured log for fatal errors. Those were erroneously noted as assertion failures due to an unintended call to Debug::AssertFailed originating via copy-paste from FMsg::LogfImpl. Removing this call ensures that the new log matches the old behavior from unstructured logging (which I have manually verified).

#rb devin.doucette

[CL 29591079 by sebastian schoner in ue5-main branch]
2023-11-09 04:14:59 -05:00
matt peters
2d8cad97a6 PakFiles and FileManager: Add IPlatformFile::FDirectoryVisitor::ShouldVisitLeafPath for directory visitors that are ignoring some files, so that FPakFile::ValidateDirectorySearch knows that invalid-to-request files were not requested despite being present in the searched directories.
#rnx
#rb Zousar.Shaker

[CL 28012483 by matt peters in ue5-main branch]
2023-09-19 16:51:05 -04:00
josh adams
aeb5cb1347 - Restoring a backout after fixing the issue that causes the backout
[Backout] - CL27745134
[FYI] stan.hormell
Original CL Desc
-----------------------------------------------------------------
[Backout] - CL27731288 - CIS / Build Errors
[FYI] Josh.Adams
Original CL Desc
-----------------------------------------------------------------
- Deprecated GetSectionPrivate and FindOrAddSection, and accessors in FConfigFile that could return a non-const FConfigSection (this is so we can track modifications to config values)
- Added AddToSection, RemoveKeyFromSection, etc to replace directly accessing a FConfigSection
- Fixed up Epic code for the deprecations (at least the majority, some projects that aren't built by Horde presubmit may have some that we will address going forward)
#jira UE-194955
#rb david.harvey and various others

[CL 27923017 by josh adams in ue5-main branch]
2023-09-15 13:39:02 -04:00
chris constantinescu
4e93516a90 Remove extra line
#rnx

[CL 27880031 by chris constantinescu in ue5-main branch]
2023-09-14 11:22:41 -04:00
chris constantinescu
754e83523b Revert debug logging in UnixPlatformOutputDevices.cpp
#rb Brandon.Schaefer

[CL 27879498 by chris constantinescu in ue5-main branch]
2023-09-14 11:10:11 -04:00
stan hormell
37bad2d07b [Backout] - CL27731288 - CIS / Build Errors
[FYI] Josh.Adams
Original CL Desc
-----------------------------------------------------------------
- Deprecated GetSectionPrivate and FindOrAddSection, and accessors in FConfigFile that could return a non-const FConfigSection (this is so we can track modifications to config values)
- Added AddToSection, RemoveKeyFromSection, etc to replace directly accessing a FConfigSection
- Fixed up Epic code for the deprecations (at least the majority, some projects that aren't built by Horde presubmit may have some that we will address going forward)
#jira UE-194955
#rb david.harvey and various others

[CL 27745141 by stan hormell in ue5-main branch]
2023-09-10 22:58:21 -04:00
josh adams
a8a9a0b759 - Deprecated GetSectionPrivate and FindOrAddSection, and accessors in FConfigFile that could return a non-const FConfigSection (this is so we can track modifications to config values)
- Added AddToSection, RemoveKeyFromSection, etc to replace directly accessing a FConfigSection
- Fixed up Epic code for the deprecations (at least the majority, some projects that aren't built by Horde presubmit may have some that we will address going forward)
#jira UE-194955
#rb david.harvey and various others

[CL 27731364 by josh adams in ue5-main branch]
2023-09-08 17:58:55 -04:00
brandon schaefer
02ca7cbc5f Fix autortfm/transactional failures on Linux
#rb Michael.Nicolella

[CL 27444111 by brandon schaefer in ue5-main branch]
2023-08-29 09:36:10 -04:00
arciel rekman
4a4333e71b Linux: make sure the file with PGO data is flushed and closed.
[REVIEW] [at]Josh.Adams
#rnx

[CL 27101758 by arciel rekman in ue5-main branch]
2023-08-15 10:07:16 -04:00
james singer
5440098709 Fix double-double quoted paths in UnixPlatformProcess
#jira UE-190523, UE-70641
#rb zack.neyland
#rnx

[CL 26889208 by james singer in ue5-main branch]
2023-08-07 13:19:39 -04:00
thraidh
c68a1ff2cd [Backout] - CL25957310
#fyi james.singer, zack.neyland
#jira UE-190523
Original CL Desc
-----------------------------------------------------------------
Improve command line handling to better handle quotes on Unix.  PR #5583

#jira UE-70641
#rb @Zack.Neyland, @Robert.Seiver
#review-25564039 @Brandon.Schaefer, @Josh.Adams, @Zack.Neyland, @Robert.Seiver

[CL 26461354 by thraidh in ue5-main branch]
2023-07-19 11:06:02 -04:00
arciel rekman
cec10c70a3 Fix a typo in a function name.
- Header is already fixed.

#rb none

[CL 26261963 by arciel rekman in ue5-main branch]
2023-06-27 12:56:26 -04:00
arciel rekman
51e496e62e Expose PGO collection in PlatformMisc to allow start/stop it.
#rb Brandon.Schaefer
[REVIEW]

[CL 26251324 by arciel rekman in ue5-main branch]
2023-06-26 21:52:59 -04:00
urias rooney
15a47de7b7 Replaced use of sa_handler with sa_sigaction
* If SA_SIGINFO is specified in sa_flags, then sa_sigaction (instead of sa_handler) specifies the signal-handling function
Added sigaction failure check

[CL 26127222 by urias rooney in ue5-main branch]
2023-06-20 13:22:32 -04:00
thraidh
56a582b389 Improve command line handling to better handle quotes on Unix. PR #5583
#jira UE-70641
#rb @Zack.Neyland, @Robert.Seiver
#review-25564039 @Brandon.Schaefer, @Josh.Adams, @Zack.Neyland, @Robert.Seiver

[CL 25957310 by thraidh in ue5-main branch]
2023-06-13 13:44:08 -04:00
arciel rekman
82eb598332 Move the LTO/PGO/PGI status to the startup messages so they can be printed consistently.
- This allows them to be found in logs of all platforms and forked servers.

#rb Josh.Adams
[REVIEW] [at]Josh.Adams

[CL 25862221 by arciel rekman in ue5-main branch]
2023-06-07 19:33:04 -04:00
kirill zorin
b6ee3a6c64 Fix UE_LOG callsites that have format string-related UB
#rb trivial
#preflight 647107780a6634dbb236a0a6

[CL 25651638 by kirill zorin in ue5-main branch]
2023-05-26 15:52:39 -04:00