summaryrefslogtreecommitdiffstats
path: root/src/common/logging (follow)
Commit message (Collapse)AuthorAgeFilesLines
* nvnflinger: fix nameLiam2023-03-012-102/+102
|
* general: fix compile for Apple ClangLiam2022-11-231-1/+1
|
* common: remove "yuzu:" prefix from thread namesLiam2022-10-041-1/+1
|
* chore: make yuzu REUSE compliantAndrea Pappacoda2022-07-277-21/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [REUSE] is a specification that aims at making file copyright information consistent, so that it can be both human and machine readable. It basically requires that all files have a header containing copyright and licensing information. When this isn't possible, like when dealing with binary assets, generated files or embedded third-party dependencies, it is permitted to insert copyright information in the `.reuse/dep5` file. Oh, and it also requires that all the licenses used in the project are present in the `LICENSES` folder, that's why the diff is so huge. This can be done automatically with `reuse download --all`. The `reuse` tool also contains a handy subcommand that analyzes the project and tells whether or not the project is (still) compliant, `reuse lint`. Following REUSE has a few advantages over the current approach: - Copyright information is easy to access for users / downstream - Files like `dist/license.md` do not need to exist anymore, as `.reuse/dep5` is used instead - `reuse lint` makes it easy to ensure that copyright information of files like binary assets / images is always accurate and up to date To add copyright information of files that didn't have it I looked up who committed what and when, for each file. As yuzu contributors do not have to sign a CLA or similar I couldn't assume that copyright ownership was of the "yuzu Emulator Project", so I used the name and/or email of the commit author instead. [REUSE]: https://reuse.software Follow-up to 01cf05bc75b1e47beb08937439f3ed9339e7b254
* service: ptm: Rewrite PSM and add TSgerman772022-06-292-2/+2
|
* general: Convert source file copyright comments over to SPDXMorph2022-04-233-9/+6
| | | | | 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.
* service: jit: stub JIT serviceLiam2022-04-072-0/+2
|
* common: logging: Add a logger for NVFlinger.bunnei2022-03-252-0/+2
|
* common: Reduce unused includesameerj2022-03-192-3/+0
|
* common: Reduce unused includesameerj2022-03-193-4/+0
|
* backend: Ensure backend_thread is destructed before message_queueMerry2022-03-101-1/+1
| | | | Ensures that stop_token signals that stop has been requested before destruction of conditional_variable
* logging: Convert `backend_thread` into an `std::jthread`Wunkolo2022-02-281-13/+5
| | | | | | Was getting an unhandled `invalid_argument` [exception](https://en.cppreference.com/w/cpp/thread/thread/join) during shutdown on my linux machine. This removes the need for a `StopBackendThread` function entirely since `jthread` [automatically handles both checking if the thread is joinable and stopping the token before attempting to join](https://en.cppreference.com/w/cpp/thread/jthread/~jthread) in the case that `StartBackendThread` was never called.
* service/mnpp: Stub mnpp_appNarr the Reg2022-02-112-0/+2
| | | | Used in Super Nintendo Entertainment System™ - Nintendo Switch Online
* logging/log.h: move enum class formatter to a separate file ...liushuyu2022-01-102-15/+24
| | | | ... to common/logging/formatter.h
* logging/log: use `underlying_type` instead of hardcoding typesliushuyu2022-01-091-2/+4
|
* logging: adapt to changes in fmt 8.1liushuyu2022-01-081-1/+14
|
* service/notif: Add notif:a and stub ListAlarmSettings,Initializegerman772021-12-062-0/+2
| | | | Used by ring fit adventure 1.2.0
* Refactor Logging ImplLevi Behunin2021-11-023-28/+39
| | | | | | | Loop on stop_token and remove final_entry in Entry. Move Backend thread out of Impl Constructor to its own function. Add Start function for backend thread. Use stop token in PopWait and check if entry filename is nullptr before logging.
* common/logging: Reduce scope of fmt includeameerj2021-10-021-1/+1
|
* common/logging: Move Log::Entry declaration to a separate headerameerj2021-10-025-17/+36
| | | | This reduces the load of requiring to include std::chrono in all files which include log.h
* common/logging: Add missing includegerman772021-09-021-0/+1
|
* Merge pull request #6927 from german77/ngctMorph2021-08-292-0/+2
|\ | | | | ngct: Stub NGCT:U service
| * ngct: Stub NGCT:U servicegerman772021-08-272-0/+2
| |
* | Revert "logging: Display backtrace on crash"Morph2021-08-271-111/+1
|/
* Merge pull request #6870 from yzct12345/trace-back-stack-back-stack-backbunnei2021-08-271-1/+111
|\ | | | | logging: Display backtrace on crash
| * logging: Display backtrace on crashyzct123452021-08-131-1/+111
| | | | | | | | | | | | | | This implements backtraces so we don't have to tell users how to use gdb anymore. This prints a backtrace after abort or segfault is detected. It also fixes the log getting cut off with the last line containing only a bracket. This change lets us know what caused a crash not just what happened the few seconds before it. I only know how to add support for Linux with GCC. Also this doesn't work outside of C/C++ such as in dynarmic or certain parts of graphics drivers. The good thing is that it'll try and just crash again but the stack frames are still there so the core dump will work just like before.
* | logging: Fix log filter during initializationameerj2021-08-241-4/+5
|/ | | | | | The log filter was being ignored on initialization due to the logging instance being initialized before the config instance, so the log filter was set to its default value. This fixes that oversight, along with using descriptive exceptions instead of abort() calls.
* logging: Simplify and make thread-safeyzct123452021-08-132-245/+218
| | | | | | | | | This simplifies the logging system. This also fixes some lost messages on startup. The simplification is simple. I removed unused functions and moved most things in the .h to the .cpp. I replaced the unnecessary linked list with its contents laid out as three member variables. Anything that went through the linked list now directly accesses the backends. Generic functions are replaced with those for each specific use case and there aren't many. This change increases coupling but we gain back more KISS and encapsulation. With those changes it was easy to make it thread-safe. I just removed the mutex and turned a boolean atomic. I was planning to use this thread-safety in my next PR about stacktraces. It was actually async-signal-safety at first but I ended up using a different approach. Anyway getting rid of the linked list is important for that because have the list of backends constantly changing complicates things.
* shader: Add loggingReinUsesLisp2021-07-232-0/+8
|
* common: logging: backend: Close the file after exceeding the write limitMorph2021-07-061-8/+11
| | | | There's no point in keeping the file open after the write limit is exceeded. This allows the file to be committed to the disk shortly after it is closed and avoids redundantly checking whether or not the write limit is exceeded.
* Merge pull request #6519 from Wunkolo/mem-size-literalbunnei2021-06-251-4/+7
|\ | | | | common: Replace common_sizes into user-literals
| * common: Replace common_sizes into user-literalsWunkolo2021-06-241-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | Removes common_sizes.h in favor of having `_KiB`, `_MiB`, `_GiB`, etc user-literals within literals.h. To keep the global namespace clean, users will have to use: ``` using namespace Common::Literals; ``` to access these literals.
* | general: Add missing #pragma once directivesMorph2021-06-241-0/+2
|/
* common: fs: file: Remove [[nodiscard]] attribute from FlushMorph2021-06-221-1/+1
| | | | Similarly, Flush() is typically called to attempt to flush a file into the disk. In the one case where this is used, we do not care whether the flush has succeeded or not, making [[nodiscard]] unnecessary.
* common: fs: Remove [[nodiscard]] attribute on Remove* functionsMorph2021-06-221-1/+1
| | | | | | There are a lot of scenarios where we don't particularly care whether or not the removal operation and just simply attempt a removal. As such, removing the [[nodiscard]] attribute is best for these functions.
* common: logging: Restructure backend codeMorph2021-06-137-278/+287
|
* common: logging: backend: Wrap IOFile in a unique_ptrMorph2021-06-132-6/+27
| | | | Allows us to forward declare Common::FS::IOFile.
* common: fs: Rework the Common Filesystem interface to make use of std::filesystem (#6270)Morph2021-05-262-17/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * common: fs: fs_types: Create filesystem types Contains various filesystem types used by the Common::FS library * common: fs: fs_util: Add std::string to std::u8string conversion utility * common: fs: path_util: Add utlity functions for paths Contains various utility functions for getting or manipulating filesystem paths used by the Common::FS library * common: fs: file: Rewrite the IOFile implementation * common: fs: Reimplement Common::FS library using std::filesystem * common: fs: fs_paths: Add fs_paths to replace common_paths * common: fs: path_util: Add the rest of the path functions * common: Remove the previous Common::FS implementation * general: Remove unused fs includes * string_util: Remove unused function and include * nvidia_flags: Migrate to the new Common::FS library * settings: Migrate to the new Common::FS library * logging: backend: Migrate to the new Common::FS library * core: Migrate to the new Common::FS library * perf_stats: Migrate to the new Common::FS library * reporter: Migrate to the new Common::FS library * telemetry_session: Migrate to the new Common::FS library * key_manager: Migrate to the new Common::FS library * bis_factory: Migrate to the new Common::FS library * registered_cache: Migrate to the new Common::FS library * xts_archive: Migrate to the new Common::FS library * service: acc: Migrate to the new Common::FS library * applets/profile: Migrate to the new Common::FS library * applets/web: Migrate to the new Common::FS library * service: filesystem: Migrate to the new Common::FS library * loader: Migrate to the new Common::FS library * gl_shader_disk_cache: Migrate to the new Common::FS library * nsight_aftermath_tracker: Migrate to the new Common::FS library * vulkan_library: Migrate to the new Common::FS library * configure_debug: Migrate to the new Common::FS library * game_list_worker: Migrate to the new Common::FS library * config: Migrate to the new Common::FS library * configure_filesystem: Migrate to the new Common::FS library * configure_per_game_addons: Migrate to the new Common::FS library * configure_profile_manager: Migrate to the new Common::FS library * configure_ui: Migrate to the new Common::FS library * input_profiles: Migrate to the new Common::FS library * yuzu_cmd: config: Migrate to the new Common::FS library * yuzu_cmd: Migrate to the new Common::FS library * vfs_real: Migrate to the new Common::FS library * vfs: Migrate to the new Common::FS library * vfs_libzip: Migrate to the new Common::FS library * service: bcat: Migrate to the new Common::FS library * yuzu: main: Migrate to the new Common::FS library * vfs_real: Delete the contents of an existing file in CreateFile Current usages of CreateFile expect to delete the contents of an existing file, retain this behavior for now. * input_profiles: Don't iterate the input profile dir if it does not exist Silences an error produced in the log if the directory does not exist. * game_list_worker: Skip parsing file if the returned VfsFile is nullptr Prevents crashes in GetLoader when the virtual file is nullptr * common: fs: Validate paths for path length * service: filesystem: Open the mod load directory as read only
* log/backend: Use in-class initializer for FileBackendLioncash2021-04-202-6/+8
| | | | We can also avoid redundant constructions of the same string repeatedly.
* log/backend: Make use of erase_ifLioncash2021-04-201-4/+4
| | | | Same behavior, but less verbose.
* Merge pull request #6199 from lioncash/log-nsbunnei2021-04-157-35/+44
|\ | | | | common/log: Move Log namespace into the Common namespace
| * log/backend: Correct order of const in copy constructorLioncash2021-04-151-2/+5
| | | | | | | | | | Follows our predominant coding style. Also explicitly specifies the move constructor/assignment operator as well.
| * common/log: Move Log namespace into the Common namespaceLioncash2021-04-157-33/+39
| | | | | | | | | | Forgot to move this over when I moved the rest of the source files with lacking namespaces over.
* | common: Move settings to common from core.bunnei2021-04-151-1/+1
|/ | | | - Removes a dependency on core and input_common from common.
* bgtc: Update to 12.x and implement OpenTaskServiceMorph2021-04-092-0/+2
|
* Address review commentsFearlessTobi2021-01-041-5/+5
|
* Delete the old log file before rotating (#5675)xperia642021-01-041-0/+3
|
* Fix the old log file to work with the log parser.bunnei2021-01-031-1/+1
|
* Rotate previous log file to '.old' if it existsxperia642021-01-031-4/+9
|
* Merge pull request #4451 from slashiee/extended-loggingbunnei2020-11-231-2/+12
|\ | | | | logging/settings: Increase maximum log size to 100 MB and add extended logging option
| * logging/settings: Increase maximum log size to 100 MB and add extended logging optionM&M2020-08-251-2/+12
| | | | | | | | | | The extended logging option is automatically disabled on boot but can be enabled afterwards, allowing the log file to go up to 1 GB during that session. This commit also fixes a few errors that are present in the general debug menu.
* | hle: service: Stub OLSC Initialize and SetSaveDataBackupSettingEnabled functions.bunnei2020-11-192-0/+2
| | | | | | | | - Used by Animal Cross: New Horizons v1.6.0 update, minimal stub gets this update working.
* | common: Enable warnings as errorsLioncash2020-11-021-2/+0
|/ | | | Cleans up common so that we can enable warnings as errors.
* common/fileutil: Convert namespace to Common::FSLioncash2020-08-161-1/+1
| | | | | | | | | | | | Migrates a remaining common file over to the Common namespace, making it consistent with the rest of common files. This also allows for high-traffic FS related code to alias the filesystem function namespace as namespace FS = Common::FS; for more concise typing.
* logging/backend: Make use of designated initializersLioncash2020-08-032-21/+15
| | | | Same behavior, less code.
* common/logging: don't use regex for path trimmingBreadFish642020-01-233-14/+23
|
* common/logging: Silence no return value warningsReinUsesLisp2019-11-151-2/+6
|
* log: Add logging class for Cheat EngineZach Hilman2019-09-222-0/+2
| | | This is better than just using something like Common.Filesystem or Common.Memory
* general: Use deducation guides for std::lock_guard and std::unique_lockLioncash2019-04-011-3/+3
| | | | | | | Since C++17, the introduction of deduction guides for locking facilities means that we no longer need to hardcode the mutex type into the locks themselves, making it easier to switch mutex types, should it ever be necessary in the future.
* logging/backend: Make time_origin a class variable instead of a local staticLioncash2019-03-021-2/+1
| | | | | | | | | Moves local global state into the Impl class itself and initializes it at the creation of the instance instead of in the function. This makes it nicer for weakly-ordered architectures, given the CreateEntry() class won't need to have atomic loads executed for each individual call to the CreateEntry class.
* logging/backend: Move CreateEntry into the Impl classLioncash2019-03-022-29/+26
| | | | | This function is only ever used within this source file and makes it easier to remove static state in the following change.
* Adressed review commentsB3n302019-02-151-1/+2
|
* threadsafe_queue: Add WaitIfEmpty and use it in loggingB3n302019-02-152-13/+8
|
* logging: Add Vulkan backend logging class typeReinUsesLisp2019-02-122-0/+2
|
* Backport review comment from citra-emu/citra#4418Tobias2018-12-071-2/+2
| | | | Original reason: As Windows multi-byte character codec is unspecified while we always assume std::string uses UTF-8 in our code base, this can output gibberish when the string contains non-ASCII characters. ::OutputDebugStringW combined with Common::UTF8ToUTF16W is preferred here.
* Merge pull request #1441 from CarlKenner/DebuggerLogbunnei2018-11-052-2/+23
|\ | | | | logging: Add DebuggerBackend for logging to Visual Studio
| * logging: Add DebuggerBackend for logging to Visual StudioCarl Kenner2018-10-072-2/+23
| |
* | logging/backend: Add missing services to the log filtersLioncash2018-10-242-0/+5
| | | | | | | | Just a few overlooked services.
* | service: Add skeleton for psm serviceZach Hilman2018-10-211-0/+1
|/ | | | Seems to be the power controller. Listed in switchbrew under the category PTM services.
* text_formatter: Avoid unnecessary string temporary creation in PrintMessage()Lioncash2018-10-051-1/+1
| | | | | | | | | operator+ for std::string creates an entirely new string, which is kind of unnecessary here if we just want to append a null terminator to the existing one. Reduces the total amount of potential allocations that need to be done in the logging path.
* Stubbed IRS (#1349)David2018-09-242-0/+2
| | | | | | | | | | * Stubbed IRS Currently we have no ideal way of implementing IRS. For the time being we should have the functions stubbed until we come up with a way to emulate IRS properly. * Added IRS to logging backend * Forward declared shared memory for irs
* Port #4182 from Citra: "Prefix all size_t with std::"fearlessTobi2018-09-154-5/+6
|
* common/logging: Amend documentation commentsLioncash2018-09-042-6/+6
| | | | | | | Multi-line doc comments still need the '<' after the ///, otherwise it's treated as a regular comment and makes the original doc comment broken in viewers, IDEs, etc. While we're at it, also fix some typos in the comments.
* common/logging/filter: Replace C-style case with C++ static_castLioncash2018-09-041-1/+1
|
* common/logging/filter: Make constructor explicitLioncash2018-09-041-1/+1
| | | | Implicit conversions aren't desirable here.
* logging/text_formatter: Use empty braces for initializing CONSOLE_SCREEN_BUFFER_INFO instanceLioncash2018-08-211-1/+1
| | | | | | | The previous form of initializing done here is a C-ism, an empty set of braces is sufficient for initializing (and doesn't potentially cause missing brace warnings, given the first member of the struct is a COORD struct).
* logging/backend: Use const reference to refer to log filterLioncash2018-08-141-2/+3
| | | | | | The filter is returned via const reference, so this was making a pointless copy of the entire filter every time a message was being pushed into the logger instance.
* common/logging: Add missing service log categoriesLioncash2018-08-082-0/+16
| | | | These weren't added when the services were introduced.
* service: Add usb servicesLioncash2018-08-072-0/+2
| | | | Adds basic skeleton for the usb services based off the information provided by Switch Brew.
* service: Add arp servicesLioncash2018-08-052-0/+2
| | | | | Adds the basic skeleton of the arp services based off the information provided by Switch Brew.
* Merge pull request #849 from DarkLordZach/xcibunnei2018-08-042-0/+2
|\ | | | | XCI and Encrypted NCA Support
| * Remove files that are not usedZach Hilman2018-08-012-0/+2
| |
* | Merge pull request #898 from lioncash/migbunnei2018-08-032-0/+2
|\ \ | | | | | | service: Add migration services
| * | service: Add migration servicesLioncash2018-08-022-0/+2
| | | | | | | | | | | | | | | Adds the basic skeleton for the mig:usr service based off information provided by Switch Brew.
* | | logging/log: Remove incorrect description in PCV doc commentLioncash2018-08-021-1/+1
| | | | | | | | | | | | PCV isn't the parental control service.
* | | service: Add psc servicesLioncash2018-08-022-0/+2
|/ / | | | | | | | | Adds the basic skeleton for the psc services based off the information provided by Switch Brew.
* | Merge pull request #888 from lioncash/capsbunnei2018-08-022-0/+2
|\ \ | | | | | | service: Add capture services
| * | service: Add capture servicesLioncash2018-08-012-0/+2
| |/ | | | | | | | | Adds the basic skeleton for the capture services based off information provided by Switch Brew.
* / service: Add bpc and pcv servicesLioncash2018-08-012-0/+4
|/ | | | | Adds the basic skeleton for the remaining pcv-related services based off information on Switch Brew.
* Merge pull request #875 from lioncash/fgmbunnei2018-07-312-0/+2
|\ | | | | service: Add fgm services
| * service: Add fgm servicesLioncash2018-07-312-0/+2
| | | | | | | | | | Adds the basic skeleton for the fgm services based off the information provided by Switch Brew.
* | service: Add the pcie serviceLioncash2018-07-312-0/+2
|/ | | | | Adds the basic skeleton of the pcie service based off information on Switch Brew.
* Port #3758 from Citra (#852): Add missing std::string import in text_formatterTobias2018-07-311-0/+1
|
* Merge pull request #857 from lioncash/wlanbunnei2018-07-302-0/+2
|\ | | | | service: Add wlan services
| * service: Add wlan servicesLioncash2018-07-292-0/+2
| | | | | | | | | | Adds the basic skeleton for the wlan services based off the information on Switch Brew.
* | service: Add btm servicesLioncash2018-07-292-0/+2
|/ | | | | Adds the skeleton for the btm services based off the information on Switch Brew.
* Merge pull request #847 from lioncash/ncmbunnei2018-07-282-0/+2
|\ | | | | service: Add ncm services
| * service: Add ncm servicesLioncash2018-07-272-0/+2
| | | | | | | | | | Adds the basic skeleton for the ncm services based off information on Switch Brew.
* | Merge pull request #846 from lioncash/miibunnei2018-07-282-0/+2
|\ \ | |/ |/| service: Add mii services
| * service: Add mii servicesLioncash2018-07-272-0/+2
| | | | | | | | | | Adds the skeleton for the mii services based off information provided by Switch Brew
* | Merge pull request #845 from lioncash/nfcbunnei2018-07-272-0/+2
|\ \ | | | | | | service: Add nfc services
| * | service: Add nfc servicesLioncash2018-07-272-0/+2
| |/ | | | | | | | | Adds the skeleton of the nfc service based off the information provided on Switch Brew.
* / service/lbl: Implement EnableVrMode, DisableVrMode and GetVrModeLioncash2018-07-272-0/+2
|/ | | | | Implements these functions according to the information available on Switch Brew.
* service: Add ldn servicesLioncash2018-07-262-0/+2
| | | | Adds ldn services based off information provided by Switch Brew.
* logging/filter: Use std::string_view in ParseFilterString()Lioncash2018-07-202-41/+40
| | | | | | | | Allows avoiding constructing std::string instances, since this only reads an arbitrary sequence of characters. We can also make ParseFilterRule() internal, since it doesn't depend on any private instance state of Filter
* logging/backend: Add missing standard includesLioncash2018-07-202-4/+3
| | | | | A few inclusions were being satisfied indirectly. To prevent breakages in the future, include these directly.
* logging/backend: Use std::string_view in RemoveBackend() and GetBackend()Lioncash2018-07-202-12/+13
| | | | | | These can just use a view to a string since its only comparing against two names in both cases for matches. This avoids constructing std::string instances where they aren't necessary.
* externals: update fmt to version 5.1.0Lioncash2018-07-181-1/+1
| | | | Previously, we were on 4.1.0, which was a major version behind.
* Logging: Dump all logs in the queue on close in debug modeJames Rowe2018-07-153-1/+12
|
* Logging: Don't lock the queue for the duration of the writeJames Rowe2018-07-141-3/+5
|
* Fix build and address review feedbackbunnei2018-07-031-4/+4
|
* Add configurable logging backendsJames Rowe2018-07-032-11/+233
|
* Update clang formatJames Rowe2018-07-031-1/+1
|
* Rename logging macro back to LOG_*James Rowe2018-07-032-10/+10
|
* Service/MM: add service and stub some functionsmailwl2018-06-052-0/+2
|
* Service/BCAT: add module and servicesmailwl2018-05-282-0/+2
|
* log: Remove old logging macros and functionsLioncash2018-04-272-54/+1
| | | | Now that the old macros are no longer used, we can remove all functionality related to them.
* Switched to NGLOG_WARNINGDavid Marcec2018-04-271-1/+1
|
* Added PREPO to logging backend, Removed comments from SaveReportWithUserDavid Marcec2018-04-261-0/+1
|
* GetIUserInterface->CreateUserInterface, Added todos and stub logs. Playreport->PlayReport.David Marcec2018-04-231-0/+1
|
* Update fmtlib to fix msvc warningsJames Rowe2018-04-062-5/+8
| | | | | | Additionally, when updating fmtlib, there was a change in fmtlib broke how the old logging macro was overloaded, so this works around that by just naming the fmtlib macro impl something different
* logging: Change FmtLogMessage to use variadic template instead of FMT_VARIADICDaniel Lim Wee Soong2018-04-032-5/+11
| | | | Due to premature merging of #262 I think the build may be failing right now. Should merge this ASAP to fix it.
* Merge pull request #262 from daniellimws/fmtlib-macrosbunnei2018-04-037-66/+74
|\ | | | | Logging: Add fmtlib-based macros
| * Remove dependency chronoDaniel Lim Wee Soong2018-03-221-1/+0
| | | | | | | | | | | | Earlier chrono was included but after some code changed it was no longer needed Forgot to remove it so I'm removing it now
| * Logging: Create logging macros based on fmtlibDaniel Lim Wee Soong2018-03-227-66/+75
| | | | | | | | | | | | | | | | | | Add a new set of logging macros based on fmtlib Similar but not exactly the same as https://github.com/citra-emu/citra/pull/3533 Citra currently uses a different version of fmt, which does not support FMT_VARIADIC so make_args is used instead. On the other hand, yuzu uses fmt 4.1.0 which doesn't have make_args yet so FMT_VARIADIC is used.
* | service: Add NFP module interface.bunnei2018-03-302-0/+2
| | | | | | | | | | | | service: Initialize NFP service. Log: Add NFP service as a log subtype.
* | log.h: Change comment from citra to yuzuN00byKing2018-03-261-1/+1
| |
* | Service/SSL: add ssl servicemailwl2018-03-232-0/+2
| |
* | Service/spl: add module and servicesmailwl2018-03-222-0/+2
| |
* | Service: add fatal:u, fatal:p servicesmailwl2018-03-202-0/+2
|/
* Merge pull request #206 from mailwl/aoc-listaddoncontentbunnei2018-02-202-0/+2
|\ | | | | Service/AOC: stub ListAddOnContent function
| * Service/AOC: stub ListAddOnContent functionmailwl2018-02-202-0/+2
| |
* | logging: Add category for Friend service.bunnei2018-02-192-0/+2
|/
* log: Add logging category for NS services.bunnei2018-02-152-0/+2
|
* logger: Add Time service logging category.bunnei2018-02-052-0/+2
|
* logger: Add SET service logging category.bunnei2018-02-052-15/+11
|
* logger: Add PCTL service logging category.bunnei2018-02-052-0/+2
|
* logger: Add LM service logging category.bunnei2018-02-052-0/+2
|
* logger: Add APM service logging category.bunnei2018-02-052-0/+2
|
* logger: Add NIFM service logging category.bunnei2018-02-052-0/+2
|
* logger: Add VI service logging category.bunnei2018-02-052-0/+2
|
* logger: Add AM service logging category.bunnei2018-02-042-0/+2
|
* logger: Add "account" service logging category.bunnei2018-02-042-0/+2
|
* audout:u OpenAudioOut and IAudioOut (#138)st4rk2018-01-252-0/+2
| | | | | | | | | | | | | | | | | | | | | | * Updated the audout:u and IAudioOut, now it might work with RetroArch without trigger an assert, however it's not the ideal implementation * Updated the audout:u and IAudioOut, now it might work with RetroArch without trigger an assert, however it's not the ideal implementation * audout:u OpenAudioOut implementation and IAudioOut cmd 1,2,3,4,5 implementation * using an enum for audio_out_state as well as changing its initialize to member initializer list * Minor fixes, added Service_Audio for LOG_*, changed PcmFormat enum to EnumClass * Minor fixes, added Service_Audio for LOG_*, changed PcmFormat enum to EnumClass * added missing Audio loggin subclass, minor fixes, clang comment breakline * Solving backend logging conflict * minor fix * Fixed duplicated Service NVDRV in backend.cpp, my bad
* logging: add missing NVDRV subclass to macro listRozlette2018-01-241-0/+1
|
* Added nvmemp, Added /dev/nvhost-ctrl, SetClientPID now stores pid (#114)David2018-01-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | * Added nvmemp, Added /dev/nvhost-ctrl, SetClientPID now stores pid * used clang-format-3.9 instead * lowercase pid * Moved nvmemp handlers to cpp * Removed unnecessary logging for NvOsGetConfigU32. Cleaned up log and changed to LOG_DEBUG * using std::arrays instead of c arrays * nvhost get config now uses std::array completely * added pid logging back * updated cmakelist * missing includes * added array, removed memcpy * clang-format6.0
* Format: Run the new clang format on everythingJames Rowe2018-01-216-6/+6
|
* loggin: Add IPC logging category.bunnei2018-01-172-1/+3
|
* logging: Rename category "Core_ARM11" to "Core_ARM".bunnei2017-10-232-2/+2
|
* hle: Initial implementation of NX service framework and IPC.bunnei2017-10-152-2/+2
|
* hle: Remove a large amount of 3ds-specific service code.bunnei2017-10-102-42/+0
|
* logging: Add WebService as a log cateogry.bunnei2017-07-102-1/+3
|
* Implement basic virtual Room support based on enet (#2803)B3n302017-07-072-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added support for network with ENet lib, connecting is possible, but data can't be sent, yet. * fixup! Added support for network with ENet lib, * fixup! CLang * fixup! Added support for network with ENet lib, * fixup! Added support for network with ENet lib, * fixup! Clang format * More fixups! * Moved ENetHost* and ENetPeer* into pimpl classes * fixup! Moved ENetHost* and ENetPeer* into pimpl classes * fixup! Clang again * fixup! Moved ENetHost* and ENetPeer* into pimpl classes * fixup! Moved ENetHost* and ENetPeer* into pimpl classes * fixup! Moved ENetHost* and ENetPeer* into pimpl classes
* Remove unnecessary WIN32_LEAN_AND_MEAN macro definitionKloen2017-06-301-1/+0
|
* Input: add device and factory templatewwylele2017-03-012-0/+2
|
* Merge pull request #2569 from wwylele/wrap-unwrapbunnei2017-02-252-0/+2
|\ | | | | APT: implemented Wrap and Unwrap
| * HW: add AES engine & implement AES-CCMwwylele2017-02-212-0/+2
| |
* | applied the change suggested by @wwylelenoah the goodra2017-02-141-0/+1
| |
* | added http service enum to the log.h filenoah the goodra2017-02-141-0/+1
|/
* Service/NFC: stub GetTagInRangeEventmailwl2016-12-302-0/+2
| | | | Fix Fatal Error in Mini-Mario & Friends - amiibo Challenge
* csnd:SND reformat source codemailwl2016-12-122-0/+2
|
* Support mingw cross-compileJannik Vogel2016-12-051-1/+1
|
* Set client SDK version to Service APIsmailwl2016-11-301-3/+2
|
* MIC_U: Stub service funcionsmailwl2016-11-252-0/+2
|
* Fix typosRicardo de Almeida Gonzaga2016-10-201-1/+1
|
* Update the stub code of BOSSJamePeng2016-10-022-0/+2
|
* Use negative priorities to avoid special-casing the self-includeYuri Kunde Schlesner2016-09-212-2/+2
|
* Remove empty newlines in #include blocks.Emmanuel Gil Peyrot2016-09-215-9/+4
| | | | | | | This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
* Sources: Run clang-format on everything.Emmanuel Gil Peyrot2016-09-187-164/+181
|
* Remove superfluous std::move in return std::move(local_var)scurest2016-06-251-1/+1
|
* AudioCore: SDL2 SinkMerryMage2016-05-072-1/+3
|
* cecd:u: stub GetCecStateAbbreviated (#1648)mailwl2016-04-081-1/+1
|
* Merge pull request #1435 from mailwl/frd_ubunnei2016-04-062-0/+2
|\ | | | | frd:u: Initial stub some functions
| * frd:u: Initial stub some functionsmailwl2016-03-272-0/+2
| |
* | Merge pull request #1616 from exhalatio/dlp_dummybunnei2016-04-032-0/+2
|\ \ | | | | | | Dummy implementation dlp:SRVR Service.
| * | Dummy implementation dlp:SRVR Service.exhalatio2016-04-022-0/+2
| |/
* / cecd:u: stub GetCecInfoEventHandle, GetChangeStateEventHandlemailwl2016-03-312-0/+2
|/
* Reorganize the ndm service path for dummy implement functionJamePeng2016-03-142-0/+2
| | | | | | SuspendDaemons , ResumeDaemons , OverrideDefaultDaemons The NDM file move to /core/hle/service/ndm/ now!
* Initial implementation ir:usermailwl2016-02-262-0/+2
|
* AudioCore: Skeleton ImplementationMerryMage2016-02-212-0/+4
| | | | | | | | | This commit: * Adds a new subproject, audio_core. * Defines structures that exist in DSP shared memory. * Hooks up various other parts of the emulator into audio core. This sets the foundation for a later HLE DSP implementation.
* backend: defaulted move constructor/assignmentLioncash2016-02-051-18/+2
|
* Services/Cam: Added new log type and camera enums from 3dbrew.Subv2015-11-232-0/+2
| | | | | Followup to #1102 Original author @mailwl
* Implement gdbstubpolaris-2015-10-042-0/+2
|
* VMManager: Make LogLayout log level configurable as a parameterYuri Kunde Schlesner2015-08-161-8/+7
|
* Handle invalid `Log::Class`Benjamin Barenblat2015-08-151-1/+2
| | | | | | Add a case of `Log::Class::Count` to the switch statement that dispatches on `Log::Class`. The case simply calls the `UNREACHABLE` macro.
* Use UNREACHABLE macro for impossible cases in previous commitBenjamin Barenblat2015-08-032-4/+3
| | | | Use the UNREACHABLE macro instead of `ASSERT(false, ...);`.
* Handle invalid `Log::Level::Count`Benjamin Barenblat2015-08-022-1/+9
| | | | | | Add a case of `Log::Level::Count` to all switch statements that dispatch on `Log::Level`. The case simply asserts `false` and notes the invalid log level.
* CitraQt: Cleanup includes.Emmanuel Gil Peyrot2015-06-281-0/+1
|
* Common: Cleanup memory and misc includes.Emmanuel Gil Peyrot2015-06-281-4/+0
|
* Services: Continue separation of services into their own folderspurpasmart962015-06-122-2/+4
|
* Service::Y2R: Support for grayscale decoding of specific formatsYuri Kunde Schlesner2015-05-222-0/+2
| | | | | | | | | | | | Implements unrotated planar YUV 4:2:0 -> RGB24 conversions in Y2R. Currently only the Y (luma) channel is used, so the results don't contain color. This will be added in a later PR at some point. This is enough to get all currently know Moflex videos to decode. (Some don't display on-screen due to seemingly unrelated reasons.) Thanks to @archshift for doing the initial implementation which I cleaned up and then fixed the 8x8 block mode.
* Common: Remove async loggingYuri Kunde Schlesner2015-05-127-210/+32
| | | | | | | | | | | It provided a large increase in complexity of the logging system while having a negligible performance impact: the usage patterns of the ring buffer meant that each log contended with the logging thread, causing it to effectively act as a synchronous extra buffering. Also removed some broken code related to filtering of subclasses which was broken since it was introduced. (Which means no one ever used that feature anyway, since, 8 months later, no one ever complained.)
* Common: Remove common.hYuri Kunde Schlesner2015-05-071-0/+1
|
* Services: Stubs and minor changespurpasmart962015-04-032-0/+4
|
* Merge pull request #629 from archshift/lcdfbbunnei2015-03-102-0/+2
|\ | | | | Implement SetLcdForceBlack and add implementation for color filling in the GPU code
| * Added LCD registers, and implementation for color filling in OGL code.archshift2015-03-092-0/+2
| |
* | Logging: check for filter before sending to the queue, to skip all heavy formatting on the other thread.Emmanuel Gil Peyrot2015-03-065-7/+17
|/
* Added information reporting from ThrowFatalErrorarchshift2015-02-222-0/+2
| | | | This was RE'd from the errdisp applet.
* backend: Add logging subentry for ldrLioncash2015-02-131-0/+1
| | | | Fixes an assertion upon executing citra in debug mode.
* Asserts: break/crash program, fit to style guide; log.h->assert.harchshift2015-02-111-2/+2
| | | | | | | Involves making asserts use printf instead of the log functions (log functions are asynchronous and, as such, the log won't be printed in time) As such, the log type argument was removed (printf obviously can't use it, and it's made obsolete by the file and line printing) Also removed some GEKKO cruft.
* Merge pull request #526 from purpasmart96/citra_stubsbunnei2015-02-111-0/+1
|\ | | | | Services: Stub some functions
| * Services: Stub some functionspurpasmart962015-02-081-0/+1
| |
* | Fix a wrong file name in a commentchinhodado2015-02-071-1/+1
|/
* Logging: Log all called service functions (under trace). Compile out all trace logs under release for performance.archshift2015-01-101-16/+7
|
* CoreTiming: Ported the CoreTiming namespace from PPSSPPSubv2015-01-072-0/+2
| | | | | | Implemented the required calls to make it work. CoreTiming: Added a new logging class Core_Timing.
* SOC_U: Preliminary implementation of sockets.Subv2014-12-312-0/+2
| | | | | | | | | | | | | Stubbed CreateMemoryBlock Using Berkeley sockets, and Winsock2.2 on Windows. So far ftpony creates the socket and accepts incoming connections SOC_U: Renamed functions to maintain consistency Also prevents possible scope errors / conflicts with the actual Berkeley socket functions SOCU: Close all the opened sockets when cleaning up SOCU
* License changepurpasmart962014-12-217-7/+7
|
* Restore the original console color after logging a message.Yuri Kunde Schlesner2014-12-142-13/+25
| | | | Fixes #277
* Add configurable per-class log filteringYuri Kunde Schlesner2014-12-134-3/+203
|
* Implement text path trimming for shorter paths.Yuri Kunde Schlesner2014-12-132-1/+38
|
* Re-add coloring to the console logging output.Yuri Kunde Schlesner2014-12-131-0/+50
|
* New logging systemYuri Kunde Schlesner2014-12-135-0/+473