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
d1b6cf93
Commit
d1b6cf93
authored
Apr 16, 2012
by
Hans Leidekker
Committed by
Alexandre Julliard
Apr 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Include the Unix pid in the snapshot_next_process reply.
parent
51df30b2
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
2 deletions
+10
-2
server_protocol.h
include/wine/server_protocol.h
+3
-1
process.c
server/process.c
+1
-0
process.h
server/process.h
+1
-0
protocol.def
server/protocol.def
+1
-0
request.h
server/request.h
+2
-1
snapshot.c
server/snapshot.c
+1
-0
trace.c
server/trace.c
+1
-0
No files found.
include/wine/server_protocol.h
View file @
d1b6cf93
...
@@ -2052,7 +2052,9 @@ struct next_process_reply
...
@@ -2052,7 +2052,9 @@ struct next_process_reply
int
threads
;
int
threads
;
int
priority
;
int
priority
;
int
handles
;
int
handles
;
int
unix_pid
;
/* VARARG(filename,unicode_str); */
/* VARARG(filename,unicode_str); */
char
__pad_36
[
4
];
};
};
...
@@ -5646,6 +5648,6 @@ union generic_reply
...
@@ -5646,6 +5648,6 @@ union generic_reply
struct
set_suspend_context_reply
set_suspend_context_reply
;
struct
set_suspend_context_reply
set_suspend_context_reply
;
};
};
#define SERVER_PROTOCOL_VERSION 43
1
#define SERVER_PROTOCOL_VERSION 43
2
#endif
/* __WINE_WINE_SERVER_PROTOCOL_H */
#endif
/* __WINE_WINE_SERVER_PROTOCOL_H */
server/process.c
View file @
d1b6cf93
...
@@ -847,6 +847,7 @@ struct process_snapshot *process_snap( int *count )
...
@@ -847,6 +847,7 @@ struct process_snapshot *process_snap( int *count )
ptr
->
count
=
process
->
obj
.
refcount
;
ptr
->
count
=
process
->
obj
.
refcount
;
ptr
->
priority
=
process
->
priority
;
ptr
->
priority
=
process
->
priority
;
ptr
->
handles
=
get_handle_table_count
(
process
);
ptr
->
handles
=
get_handle_table_count
(
process
);
ptr
->
unix_pid
=
process
->
unix_pid
;
grab_object
(
process
);
grab_object
(
process
);
ptr
++
;
ptr
++
;
}
}
...
...
server/process.h
View file @
d1b6cf93
...
@@ -90,6 +90,7 @@ struct process_snapshot
...
@@ -90,6 +90,7 @@ struct process_snapshot
int
threads
;
/* number of threads */
int
threads
;
/* number of threads */
int
priority
;
/* priority class */
int
priority
;
/* priority class */
int
handles
;
/* number of handles */
int
handles
;
/* number of handles */
int
unix_pid
;
/* Unix pid */
};
};
#define CPU_FLAG(cpu) (1 << (cpu))
#define CPU_FLAG(cpu) (1 << (cpu))
...
...
server/protocol.def
View file @
d1b6cf93
...
@@ -1577,6 +1577,7 @@ enum char_info_mode
...
@@ -1577,6 +1577,7 @@ enum char_info_mode
int threads; /* number of threads */
int threads; /* number of threads */
int priority; /* process priority */
int priority; /* process priority */
int handles; /* number of handles */
int handles; /* number of handles */
int unix_pid; /* Unix pid */
VARARG(filename,unicode_str); /* file name of main exe */
VARARG(filename,unicode_str); /* file name of main exe */
@END
@END
...
...
server/request.h
View file @
d1b6cf93
...
@@ -1161,7 +1161,8 @@ C_ASSERT( FIELD_OFFSET(struct next_process_reply, ppid) == 16 );
...
@@ -1161,7 +1161,8 @@ C_ASSERT( FIELD_OFFSET(struct next_process_reply, ppid) == 16 );
C_ASSERT
(
FIELD_OFFSET
(
struct
next_process_reply
,
threads
)
==
20
);
C_ASSERT
(
FIELD_OFFSET
(
struct
next_process_reply
,
threads
)
==
20
);
C_ASSERT
(
FIELD_OFFSET
(
struct
next_process_reply
,
priority
)
==
24
);
C_ASSERT
(
FIELD_OFFSET
(
struct
next_process_reply
,
priority
)
==
24
);
C_ASSERT
(
FIELD_OFFSET
(
struct
next_process_reply
,
handles
)
==
28
);
C_ASSERT
(
FIELD_OFFSET
(
struct
next_process_reply
,
handles
)
==
28
);
C_ASSERT
(
sizeof
(
struct
next_process_reply
)
==
32
);
C_ASSERT
(
FIELD_OFFSET
(
struct
next_process_reply
,
unix_pid
)
==
32
);
C_ASSERT
(
sizeof
(
struct
next_process_reply
)
==
40
);
C_ASSERT
(
FIELD_OFFSET
(
struct
next_thread_request
,
handle
)
==
12
);
C_ASSERT
(
FIELD_OFFSET
(
struct
next_thread_request
,
handle
)
==
12
);
C_ASSERT
(
FIELD_OFFSET
(
struct
next_thread_request
,
reset
)
==
16
);
C_ASSERT
(
FIELD_OFFSET
(
struct
next_thread_request
,
reset
)
==
16
);
C_ASSERT
(
sizeof
(
struct
next_thread_request
)
==
24
);
C_ASSERT
(
sizeof
(
struct
next_thread_request
)
==
24
);
...
...
server/snapshot.c
View file @
d1b6cf93
...
@@ -117,6 +117,7 @@ static int snapshot_next_process( struct snapshot *snapshot, struct next_process
...
@@ -117,6 +117,7 @@ static int snapshot_next_process( struct snapshot *snapshot, struct next_process
reply
->
threads
=
ptr
->
threads
;
reply
->
threads
=
ptr
->
threads
;
reply
->
priority
=
ptr
->
priority
;
reply
->
priority
=
ptr
->
priority
;
reply
->
handles
=
ptr
->
handles
;
reply
->
handles
=
ptr
->
handles
;
reply
->
unix_pid
=
ptr
->
process
->
unix_pid
;
if
((
exe_module
=
get_process_exe_module
(
ptr
->
process
))
&&
exe_module
->
filename
)
if
((
exe_module
=
get_process_exe_module
(
ptr
->
process
))
&&
exe_module
->
filename
)
{
{
data_size_t
len
=
min
(
exe_module
->
namelen
,
get_reply_max_size
()
);
data_size_t
len
=
min
(
exe_module
->
namelen
,
get_reply_max_size
()
);
...
...
server/trace.c
View file @
d1b6cf93
...
@@ -1969,6 +1969,7 @@ static void dump_next_process_reply( const struct next_process_reply *req )
...
@@ -1969,6 +1969,7 @@ static void dump_next_process_reply( const struct next_process_reply *req )
fprintf
(
stderr
,
", threads=%d"
,
req
->
threads
);
fprintf
(
stderr
,
", threads=%d"
,
req
->
threads
);
fprintf
(
stderr
,
", priority=%d"
,
req
->
priority
);
fprintf
(
stderr
,
", priority=%d"
,
req
->
priority
);
fprintf
(
stderr
,
", handles=%d"
,
req
->
handles
);
fprintf
(
stderr
,
", handles=%d"
,
req
->
handles
);
fprintf
(
stderr
,
", unix_pid=%d"
,
req
->
unix_pid
);
dump_varargs_unicode_str
(
", filename="
,
cur_size
);
dump_varargs_unicode_str
(
", filename="
,
cur_size
);
}
}
...
...
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