Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
6056e8a5
Commit
6056e8a5
authored
Jul 07, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Return the process CPU in the get_process_info request.
parent
5ce04f7f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
2 deletions
+8
-2
server_protocol.h
include/wine/server_protocol.h
+3
-1
process.c
server/process.c
+1
-0
protocol.def
server/protocol.def
+1
-0
request.h
server/request.h
+2
-1
trace.c
server/trace.c
+1
-0
No files found.
include/wine/server_protocol.h
View file @
6056e8a5
...
...
@@ -693,6 +693,8 @@ struct get_process_info_reply
timeout_t
end_time
;
int
exit_code
;
int
priority
;
cpu_type_t
cpu
;
char
__pad_60
[
4
];
};
...
...
@@ -5310,6 +5312,6 @@ union generic_reply
struct
set_window_layered_info_reply
set_window_layered_info_reply
;
};
#define SERVER_PROTOCOL_VERSION 38
6
#define SERVER_PROTOCOL_VERSION 38
7
#endif
/* __WINE_WINE_SERVER_PROTOCOL_H */
server/process.c
View file @
6056e8a5
...
...
@@ -1068,6 +1068,7 @@ DECL_HANDLER(get_process_info)
reply
->
peb
=
process
->
peb
;
reply
->
start_time
=
process
->
start_time
;
reply
->
end_time
=
process
->
end_time
;
reply
->
cpu
=
process
->
cpu
;
release_object
(
process
);
}
}
...
...
server/protocol.def
View file @
6056e8a5
...
...
@@ -660,6 +660,7 @@ typedef union
timeout_t end_time; /* process end time */
int exit_code; /* process exit code */
int priority; /* priority class */
cpu_type_t cpu; /* CPU that this process is running on */
@END
...
...
server/request.h
View file @
6056e8a5
...
...
@@ -694,7 +694,8 @@ C_ASSERT( FIELD_OFFSET(struct get_process_info_reply, start_time) == 32 );
C_ASSERT
(
FIELD_OFFSET
(
struct
get_process_info_reply
,
end_time
)
==
40
);
C_ASSERT
(
FIELD_OFFSET
(
struct
get_process_info_reply
,
exit_code
)
==
48
);
C_ASSERT
(
FIELD_OFFSET
(
struct
get_process_info_reply
,
priority
)
==
52
);
C_ASSERT
(
sizeof
(
struct
get_process_info_reply
)
==
56
);
C_ASSERT
(
FIELD_OFFSET
(
struct
get_process_info_reply
,
cpu
)
==
56
);
C_ASSERT
(
sizeof
(
struct
get_process_info_reply
)
==
64
);
C_ASSERT
(
FIELD_OFFSET
(
struct
set_process_info_request
,
handle
)
==
12
);
C_ASSERT
(
FIELD_OFFSET
(
struct
set_process_info_request
,
mask
)
==
16
);
C_ASSERT
(
FIELD_OFFSET
(
struct
set_process_info_request
,
priority
)
==
20
);
...
...
server/trace.c
View file @
6056e8a5
...
...
@@ -1152,6 +1152,7 @@ static void dump_get_process_info_reply( const struct get_process_info_reply *re
dump_timeout
(
", end_time="
,
&
req
->
end_time
);
fprintf
(
stderr
,
", exit_code=%d"
,
req
->
exit_code
);
fprintf
(
stderr
,
", priority=%d"
,
req
->
priority
);
dump_cpu_type
(
", cpu="
,
&
req
->
cpu
);
}
static
void
dump_set_process_info_request
(
const
struct
set_process_info_request
*
req
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment