summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/lm (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-03-01service: move hle_ipc from kernelLiam1-4/+4
2023-02-21service: refactor server architectureLiam2-4/+7
Converts services to have their own processes
2022-12-29hle_ipc: Rename ReadBufferSpan to ReadBufferameerj1-1/+1
2022-12-25service: Use ReadBufferSpan where it is trivial to do soameerj1-1/+1
2022-04-23general: Convert source file copyright comments over to SPDXMorph2-6/+4
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-04core: Remove unused includesameerj1-3/+0
2021-06-15lm: Demote guest logs to LOG_DEBUGameerj1-27/+20
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 ResultSuccessMorph1-3/+3
Transition to PascalCase for result names.
2021-04-23lm: Make use of insert_or_assign() in Log()Lioncash1-1/+1
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()Lioncash1-4/+5
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 warningLioncash1-1/+1
Resolves a trivial warning with clang.
2021-02-07lm: Fix ReadLeb128Chloe Marcec1-7/+9
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-24Print Process ID and Thread ID as hexChloe Marcec1-2/+2
2021-01-23Clamp string reads to buffer sizeChloe Marcec1-3/+5
2021-01-20Mark DestinationToString as staticChloe Marcec1-1/+1
2021-01-20Mark LogPacketHeaderEntry hash as noexceptChloe Marcec1-1/+1
2021-01-20lm: Recode LM serviceChloe Marcec3-271/+286
Rework the service to spit out to logs instead of a seperate file as well as fix any crashes caused by lm.
2020-12-08core: Remove unnecessary enum casts in log callsLioncash1-1/+1
Follows the video core PR. fmt doesn't require casts for enum classes anymore, so we can remove quite a few casts.
2020-11-27service: Eliminate usages of the global system instanceLioncash1-10/+6
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 instanceLioncash1-0/+1
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-23lm: Silence no return value warningMorph1-1/+2
2020-04-17core: memory: Move to Core::Memory namespace.bunnei1-4/+4
- helpful to disambiguate Kernel::Memory namespace.
2019-11-27core/memory: Migrate over Read{8, 16, 32, 64, Block} to the Memory classLioncash1-5/+5
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-27core: Prepare various classes for memory read/write migrationLioncash1-4/+9
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 Hilman2-5/+11
2019-09-22lm: Rename Initialize to Log and implement with manager/reporterZach Hilman1-140/+22
Allows saving and clearer output of data.
2019-09-22lm: Implement manager class to output to reporterZach Hilman2-0/+233
2019-09-22core: Add LM::Manager to systemZach Hilman2-15/+16
Allows centralized control over logging mechanisms.
2019-02-06remove all occurance of specifying endianness inside BitFieldWeiyi Wang1-1/+1
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 services should now log on some levelDavid Marcec1-2/+2
2018-11-20lm: Implement SetDestination by doing nothingLioncash1-1/+12
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::"fearlessTobi1-1/+1
2018-08-15lm: Use LOG_DEBUG for printing out trace logsLioncash1-1/+1
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 loggerLioncash1-1/+19
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 ILoggerLioncash1-4/+4
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-26lm: Move LM's class declaration into the cpp fileLioncash2-37/+31
This isn't used directly outside of this translation unit, so we can hide it from external use.
2018-07-26lm: Amend names of Initialize() in Logger and Initialize() in LMLioncash2-7/+7
Amends these to match the information on Switch Brew.
2018-07-26lm: Add missing function entry to Logger's function tableLioncash1-0/+1
2018-07-03Rename logging macro back to LOG_*James Rowe1-6/+6
2018-04-24lm: Move logging macros over to new fmt-compatible onesLioncash1-6/+6
2018-04-20service: Use nested namespace specifiers where applicableLioncash2-8/+4
Tidies up namespace declarations
2018-02-13Service/lm: add support to multiline logsmailwl1-20/+49
2018-02-05logger: Add LM service logging category.bunnei1-2/+2
2018-02-05lm: Ensure log string is non-empty before checking back().bunnei1-1/+1
2018-01-25hle: Rename RequestBuilder to ResponseBuilder.bunnei1-2/+2
2018-01-25service: Fix all incorrect IPC response headers.bunnei1-14/+4
2018-01-23Services: Added a todo about returning interfaces as domain objects in lm, hid and time.Subv1-0/+3
2018-01-22LM: Don't create an unnecessary port in Initialize.Subv2-15/+10
2018-01-18lm: Minor logging fix to skip a byte.bunnei1-0/+7
2018-01-15lm: Fix IPC header for Initialize.bunnei1-1/+1
2018-01-13yuzu: Update license text to be consistent across project.bunnei2-2/+2
2018-01-10Services: Allow lm to log single-character messages.Subv1-7/+3
2018-01-07IPC Cleanup: Remove 3DS-specific code and translate copy, move and domain objects in IPC requests.Subv1-1/+1
Popping objects from the buffer is still not implemented.
2018-01-06lm: Assert on unsupported multi-message.bunnei1-0/+9
2018-01-05lm: Improve Log() to format a useful string.bunnei1-10/+75
2017-12-28service: Clean up apm/lm/applet_oe/controller/sm ctor/dtor.bunnei2-4/+2
2017-10-19lm: Implement lm::Initialize and Logger::log.bunnei2-3/+67
2017-10-15hle: Implement ConvertSessionToDomain, various cleanups.bunnei1-5/+1
2017-10-15hle: Add service stubs for apm and appletOE.bunnei1-1/+1
2017-10-15hle: Initial implementation of NX service framework and IPC.bunnei2-0/+68