Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Suyu
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
many-archive
Suyu
Commits
8e1dbb26
There was an error fetching the commit references. Please try again later.
Commit
8e1dbb26
authored
7 years ago
by
bunnei
Browse files
Options
Downloads
Patches
Plain Diff
logger: Add Time service logging category.
parent
c689fe84
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/common/logging/backend.cpp
+1
-0
1 addition, 0 deletions
src/common/logging/backend.cpp
src/common/logging/log.h
+1
-0
1 addition, 0 deletions
src/common/logging/log.h
src/core/hle/service/time/time.cpp
+10
-10
10 additions, 10 deletions
src/core/hle/service/time/time.cpp
with
12 additions
and
10 deletions
src/common/logging/backend.cpp
+
1
−
0
View file @
8e1dbb26
...
@@ -44,6 +44,7 @@ namespace Log {
...
@@ -44,6 +44,7 @@ namespace Log {
SUB(Service, PCTL) \
SUB(Service, PCTL) \
SUB(Service, SET) \
SUB(Service, SET) \
SUB(Service, SM) \
SUB(Service, SM) \
SUB(Service, Time) \
SUB(Service, VI) \
SUB(Service, VI) \
CLS(HW) \
CLS(HW) \
SUB(HW, Memory) \
SUB(HW, Memory) \
...
...
This diff is collapsed.
Click to expand it.
src/common/logging/log.h
+
1
−
0
View file @
8e1dbb26
...
@@ -61,6 +61,7 @@ enum class Class : ClassType {
...
@@ -61,6 +61,7 @@ enum class Class : ClassType {
Service_PCTL
,
///< The PCTL (Parental control) service
Service_PCTL
,
///< The PCTL (Parental control) service
Service_SET
,
///< The SET (Settings) service
Service_SET
,
///< The SET (Settings) service
Service_SM
,
///< The SM (Service manager) service
Service_SM
,
///< The SM (Service manager) service
Service_Time
,
///< The time service
Service_VI
,
///< The VI (Video interface) service
Service_VI
,
///< The VI (Video interface) service
HW
,
///< Low-level hardware emulation
HW
,
///< Low-level hardware emulation
HW_Memory
,
///< Memory-map and address translation
HW_Memory
,
///< Memory-map and address translation
...
...
This diff is collapsed.
Click to expand it.
src/core/hle/service/time/time.cpp
+
10
−
10
View file @
8e1dbb26
...
@@ -29,14 +29,14 @@ private:
...
@@ -29,14 +29,14 @@ private:
const
s64
time_since_epoch
{
std
::
chrono
::
duration_cast
<
std
::
chrono
::
seconds
>
(
const
s64
time_since_epoch
{
std
::
chrono
::
duration_cast
<
std
::
chrono
::
seconds
>
(
std
::
chrono
::
system_clock
::
now
().
time_since_epoch
())
std
::
chrono
::
system_clock
::
now
().
time_since_epoch
())
.
count
()};
.
count
()};
LOG_DEBUG
(
Service
,
"called"
);
LOG_DEBUG
(
Service
_Time
,
"called"
);
IPC
::
ResponseBuilder
rb
{
ctx
,
4
};
IPC
::
ResponseBuilder
rb
{
ctx
,
4
};
rb
.
Push
(
RESULT_SUCCESS
);
rb
.
Push
(
RESULT_SUCCESS
);
rb
.
Push
<
u64
>
(
time_since_epoch
);
rb
.
Push
<
u64
>
(
time_since_epoch
);
}
}
void
GetSystemClockContext
(
Kernel
::
HLERequestContext
&
ctx
)
{
void
GetSystemClockContext
(
Kernel
::
HLERequestContext
&
ctx
)
{
LOG_WARNING
(
Service
,
"(STUBBED) called"
);
LOG_WARNING
(
Service
_Time
,
"(STUBBED) called"
);
SystemClockContext
system_clock_ontext
{};
SystemClockContext
system_clock_ontext
{};
IPC
::
ResponseBuilder
rb
{
ctx
,
(
sizeof
(
SystemClockContext
)
/
4
)
+
2
};
IPC
::
ResponseBuilder
rb
{
ctx
,
(
sizeof
(
SystemClockContext
)
/
4
)
+
2
};
rb
.
Push
(
RESULT_SUCCESS
);
rb
.
Push
(
RESULT_SUCCESS
);
...
@@ -55,7 +55,7 @@ public:
...
@@ -55,7 +55,7 @@ public:
private
:
private
:
void
GetCurrentTimePoint
(
Kernel
::
HLERequestContext
&
ctx
)
{
void
GetCurrentTimePoint
(
Kernel
::
HLERequestContext
&
ctx
)
{
LOG_DEBUG
(
Service
,
"called"
);
LOG_DEBUG
(
Service
_Time
,
"called"
);
SteadyClockTimePoint
steady_clock_time_point
{
cyclesToMs
(
CoreTiming
::
GetTicks
())
/
1000
};
SteadyClockTimePoint
steady_clock_time_point
{
cyclesToMs
(
CoreTiming
::
GetTicks
())
/
1000
};
IPC
::
ResponseBuilder
rb
{
ctx
,
(
sizeof
(
SteadyClockTimePoint
)
/
4
)
+
2
};
IPC
::
ResponseBuilder
rb
{
ctx
,
(
sizeof
(
SteadyClockTimePoint
)
/
4
)
+
2
};
rb
.
Push
(
RESULT_SUCCESS
);
rb
.
Push
(
RESULT_SUCCESS
);
...
@@ -76,7 +76,7 @@ public:
...
@@ -76,7 +76,7 @@ public:
private
:
private
:
void
GetDeviceLocationName
(
Kernel
::
HLERequestContext
&
ctx
)
{
void
GetDeviceLocationName
(
Kernel
::
HLERequestContext
&
ctx
)
{
LOG_WARNING
(
Service
,
"(STUBBED) called"
);
LOG_WARNING
(
Service
_Time
,
"(STUBBED) called"
);
LocationName
location_name
{};
LocationName
location_name
{};
IPC
::
ResponseBuilder
rb
{
ctx
,
(
sizeof
(
LocationName
)
/
4
)
+
2
};
IPC
::
ResponseBuilder
rb
{
ctx
,
(
sizeof
(
LocationName
)
/
4
)
+
2
};
rb
.
Push
(
RESULT_SUCCESS
);
rb
.
Push
(
RESULT_SUCCESS
);
...
@@ -84,7 +84,7 @@ private:
...
@@ -84,7 +84,7 @@ private:
}
}
void
GetTotalLocationNameCount
(
Kernel
::
HLERequestContext
&
ctx
)
{
void
GetTotalLocationNameCount
(
Kernel
::
HLERequestContext
&
ctx
)
{
LOG_WARNING
(
Service
,
"(STUBBED) called"
);
LOG_WARNING
(
Service
_Time
,
"(STUBBED) called"
);
IPC
::
ResponseBuilder
rb
{
ctx
,
3
};
IPC
::
ResponseBuilder
rb
{
ctx
,
3
};
rb
.
Push
(
RESULT_SUCCESS
);
rb
.
Push
(
RESULT_SUCCESS
);
rb
.
Push
<
u32
>
(
0
);
rb
.
Push
<
u32
>
(
0
);
...
@@ -94,7 +94,7 @@ private:
...
@@ -94,7 +94,7 @@ private:
IPC
::
RequestParser
rp
{
ctx
};
IPC
::
RequestParser
rp
{
ctx
};
u64
posix_time
=
rp
.
Pop
<
u64
>
();
u64
posix_time
=
rp
.
Pop
<
u64
>
();
LOG_WARNING
(
Service
,
"(STUBBED) called, posix_time=0x%016llX"
,
posix_time
);
LOG_WARNING
(
Service
_Time
,
"(STUBBED) called, posix_time=0x%016llX"
,
posix_time
);
CalendarTime
calendar_time
{
2018
,
1
,
1
,
0
,
0
,
0
};
CalendarTime
calendar_time
{
2018
,
1
,
1
,
0
,
0
,
0
};
CalendarAdditionalInfo
additional_info
{};
CalendarAdditionalInfo
additional_info
{};
...
@@ -109,28 +109,28 @@ void Module::Interface::GetStandardUserSystemClock(Kernel::HLERequestContext& ct
...
@@ -109,28 +109,28 @@ void Module::Interface::GetStandardUserSystemClock(Kernel::HLERequestContext& ct
IPC
::
ResponseBuilder
rb
{
ctx
,
2
,
0
,
1
};
IPC
::
ResponseBuilder
rb
{
ctx
,
2
,
0
,
1
};
rb
.
Push
(
RESULT_SUCCESS
);
rb
.
Push
(
RESULT_SUCCESS
);
rb
.
PushIpcInterface
<
ISystemClock
>
();
rb
.
PushIpcInterface
<
ISystemClock
>
();
LOG_DEBUG
(
Service
,
"called"
);
LOG_DEBUG
(
Service
_Time
,
"called"
);
}
}
void
Module
::
Interface
::
GetStandardNetworkSystemClock
(
Kernel
::
HLERequestContext
&
ctx
)
{
void
Module
::
Interface
::
GetStandardNetworkSystemClock
(
Kernel
::
HLERequestContext
&
ctx
)
{
IPC
::
ResponseBuilder
rb
{
ctx
,
2
,
0
,
1
};
IPC
::
ResponseBuilder
rb
{
ctx
,
2
,
0
,
1
};
rb
.
Push
(
RESULT_SUCCESS
);
rb
.
Push
(
RESULT_SUCCESS
);
rb
.
PushIpcInterface
<
ISystemClock
>
();
rb
.
PushIpcInterface
<
ISystemClock
>
();
LOG_DEBUG
(
Service
,
"called"
);
LOG_DEBUG
(
Service
_Time
,
"called"
);
}
}
void
Module
::
Interface
::
GetStandardSteadyClock
(
Kernel
::
HLERequestContext
&
ctx
)
{
void
Module
::
Interface
::
GetStandardSteadyClock
(
Kernel
::
HLERequestContext
&
ctx
)
{
IPC
::
ResponseBuilder
rb
{
ctx
,
2
,
0
,
1
};
IPC
::
ResponseBuilder
rb
{
ctx
,
2
,
0
,
1
};
rb
.
Push
(
RESULT_SUCCESS
);
rb
.
Push
(
RESULT_SUCCESS
);
rb
.
PushIpcInterface
<
ISteadyClock
>
();
rb
.
PushIpcInterface
<
ISteadyClock
>
();
LOG_DEBUG
(
Service
,
"called"
);
LOG_DEBUG
(
Service
_Time
,
"called"
);
}
}
void
Module
::
Interface
::
GetTimeZoneService
(
Kernel
::
HLERequestContext
&
ctx
)
{
void
Module
::
Interface
::
GetTimeZoneService
(
Kernel
::
HLERequestContext
&
ctx
)
{
IPC
::
ResponseBuilder
rb
{
ctx
,
2
,
0
,
1
};
IPC
::
ResponseBuilder
rb
{
ctx
,
2
,
0
,
1
};
rb
.
Push
(
RESULT_SUCCESS
);
rb
.
Push
(
RESULT_SUCCESS
);
rb
.
PushIpcInterface
<
ITimeZoneService
>
();
rb
.
PushIpcInterface
<
ITimeZoneService
>
();
LOG_DEBUG
(
Service
,
"called"
);
LOG_DEBUG
(
Service
_Time
,
"called"
);
}
}
Module
::
Interface
::
Interface
(
std
::
shared_ptr
<
Module
>
time
,
const
char
*
name
)
Module
::
Interface
::
Interface
(
std
::
shared_ptr
<
Module
>
time
,
const
char
*
name
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment