aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/lm
AgeCommit message (Collapse)Author
2023-03-01service: move hle_ipc from kernelLiam
2023-02-21service: refactor server architectureLiam
Converts services to have their own processes
2022-04-23general: Convert source file copyright comments over to SPDXMorph
This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
2021-11-03core: Remove unused includesameerj
2021-06-14lm: Demote guest logs to LOG_DEBUGameerj
Guest logs are not very useful, as they are intended for use by the game developers during development. As such, they provide little meaning to be logged by yuzu and tend to overwhelm the log output at times.
2021-06-02general: Replace RESULT_SUCCESS with ResultSuccessMorph
Transition to PascalCase for result names.
2021-04-23lm: Make use of insert_or_assign() in Log()Lioncash
Avoids unnecessary default construction of an entry in cases where no entry exists before overwriting the created entry.
2021-04-23lm: Prevent redundant map lookups in Log()Lioncash
We can perform the lookup and then do the contains check by checking the end iterator. The benefit of this is that if we *do* find an entry, then we aren't hashing into the map again to find it. We can also get rid of an unused std::vector temporary while we're at it.
2021-04-23lm: Resolve -Wextra-semi warningLioncash
Resolves a trivial warning with clang.
2021-02-07lm: Fix ReadLeb128Chloe Marcec
Fixes assertion on Bloodstained Ritual of the Night. We would over read sometimes, this is fixed by checking if the top bit is set in the first iteration. We also lock the loop off to be only the max size of the type we can fit. Finally we changed an incorrect print of "DEBUG" to "TRACE" to reflect the proper log severity
2021-01-25Print Process ID and Thread ID as hexChloe Marcec
2021-01-23Clamp string reads to buffer sizeChloe Marcec
2021-01-20Mark DestinationToString as staticChloe Marcec
2021-01-20Mark LogPacketHeaderEntry hash as noexceptChloe Marcec
2021-01-20lm: Recode LM serviceChloe Marcec
Rework the service to spit out to logs instead of a seperate file as well as fix any crashes caused by lm.
2020-12-07core: Remove unnecessary enum casts in log callsLioncash
Follows the video core PR. fmt doesn't require casts for enum classes anymore, so we can remove quite a few casts.
2020-11-26service: Eliminate usages of the global system instanceLioncash
Completely removes all usages of the global system instance within the services code by passing in the using system instance to the services.
2020-11-08ipc_helpers: Remove usage of the global system instanceLioncash
Resolves numerous deprecation warnings throughout the codebase due to inclusion of this header. Now building core should be significantly less noisy (and also relying on less global state). This also uncovered quite a few modules that were relying on indirect includes, which have also been fixed.
2020-06-22lm: Silence no return value warningMorph
2020-04-17core: memory: Move to Core::Memory namespace.bunnei
- helpful to disambiguate Kernel::Memory namespace.
2019-11-26core/memory: Migrate over Read{8, 16, 32, 64, Block} to the Memory classLioncash
With all of the trivial parts of the memory interface moved over, we can get right into moving over the bits that are used. Note that this does require the use of GetInstance from the global system instance to be used within hle_ipc.cpp and the gdbstub. This is fine for the time being, as they both already rely on the global system instance in other functions. These will be removed in a change directed at both of these respectively. For now, it's sufficient, as it still accomplishes the goal of de-globalizing the memory code.
2019-11-26core: Prepare various classes for memory read/write migrationLioncash
Amends a few interfaces to be able to handle the migration over to the new Memory class by passing the class by reference as a function parameter where necessary. Notably, within the filesystem services, this eliminates two ReadBlock() calls by using the helper functions of HLERequestContext to do that for us.
2019-09-22lm: Flush manager output on core shutdownZach Hilman
2019-09-22lm: Rename Initialize to Log and implement with manager/reporterZach Hilman
Allows saving and clearer output of data.
2019-09-22lm: Implement manager class to output to reporterZach Hilman
2019-09-22core: Add LM::Manager to systemZach Hilman
Allows centralized control over logging mechanisms.
2019-02-06remove all occurance of specifying endianness inside BitFieldWeiyi Wang
This commit it automatically generated by command in zsh: sed -i -- 's/BitField<\(.*\)_le>/BitField<\1>/g' **/*(D.) BitField is now aware to endianness and default to little endian. It expects a value representation type without storage specification for its template parameter.
2018-11-26Changed logging to be "Log before execution", Added more error logging, all ↵David Marcec
services should now log on some level
2018-11-19lm: Implement SetDestination by doing nothingLioncash
This service function was likely intended to be a way to redirect where the output of a log went. e.g. Firing a log over a network, dumping over a tunneling session, etc. Given we always want to see the log and not change its output. It's one of the lucky service functions where the easiest implementation is to just do nothing at all and return success.
2018-09-15Port #4182 from Citra: "Prefix all size_t with std::"fearlessTobi
2018-08-15lm: Use LOG_DEBUG for printing out trace logsLioncash
Using LOG_TRACE here isn't a good idea because LOG_TRACE is only enabled when yuzu is compiled in debug mode. Debug mode is also quite slow, and so we're potentially throwing away logging messages that can provide value when trying to boot games.
2018-08-15lm: Handle threads and modules within the loggerLioncash
The thread field serves to indicate which thread a log is related to and provides the length of the thread's name, so we can print that out, ditto for modules. Now we can know what threads are potentially spawning off logging messages (for example Lydie & Suelle bounces between MainThread and LoadingThread when initializing the game).
2018-08-01lm: Amend name of ILoggerLioncash
Previously this was being registered with the name "Logger". While we're at it, also change the name of the class to match it.
2018-07-25lm: Move LM's class declaration into the cpp fileLioncash
This isn't used directly outside of this translation unit, so we can hide it from external use.
2018-07-25lm: Amend names of Initialize() in Logger and Initialize() in LMLioncash
Amends these to match the information on Switch Brew.
2018-07-25lm: Add missing function entry to Logger's function tableLioncash
2018-07-02Rename logging macro back to LOG_*James Rowe
2018-04-24lm: Move logging macros over to new fmt-compatible onesLioncash
2018-04-19service: Use nested namespace specifiers where applicableLioncash
Tidies up namespace declarations
2018-02-13Service/lm: add support to multiline logsmailwl
2018-02-04logger: Add LM service logging category.bunnei
2018-02-04lm: Ensure log string is non-empty before checking back().bunnei
2018-01-24hle: Rename RequestBuilder to ResponseBuilder.bunnei
2018-01-24service: Fix all incorrect IPC response headers.bunnei
2018-01-22Services: Added a todo about returning interfaces as domain objects in lm, ↵Subv
hid and time.
2018-01-22LM: Don't create an unnecessary port in Initialize.Subv
2018-01-18lm: Minor logging fix to skip a byte.bunnei
2018-01-14lm: Fix IPC header for Initialize.bunnei
2018-01-13yuzu: Update license text to be consistent across project.bunnei
2018-01-10Services: Allow lm to log single-character messages.Subv