diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-11-23 23:03:30 +0100 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-11-23 23:03:30 +0100 |
commit | 281d7b6a450ac432b0aa16b23d31e633b73bc53a (patch) | |
tree | 9f981ef817d5985e3081baf672e61bb87c44ca5e /debian/patches/0027-XXX-i-broke-rpctrace.patch | |
parent | 6b42a69ed4b73cabca8ab01d0819f8407df82458 (diff) |
drop old patch series
Diffstat (limited to 'debian/patches/0027-XXX-i-broke-rpctrace.patch')
-rw-r--r-- | debian/patches/0027-XXX-i-broke-rpctrace.patch | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/debian/patches/0027-XXX-i-broke-rpctrace.patch b/debian/patches/0027-XXX-i-broke-rpctrace.patch deleted file mode 100644 index 490add59..00000000 --- a/debian/patches/0027-XXX-i-broke-rpctrace.patch +++ /dev/null @@ -1,45 +0,0 @@ -From 2929d5e27cc7797053c5ceae5b6737977bfc4df8 Mon Sep 17 00:00:00 2001 -From: Justus Winter <4winter@informatik.uni-hamburg.de> -Date: Thu, 28 Nov 2013 12:21:49 +0100 -Subject: [PATCH hurd 27/29] XXX i broke rpctrace - -If we cannot get this to work with protected payloads, we can always -add a switch to libports to disable the optimization. ---- - utils/rpctrace.c | 20 +++++++++++++++++++- - 1 file changed, 19 insertions(+), 1 deletion(-) - -diff --git a/utils/rpctrace.c b/utils/rpctrace.c -index c954e51..18fae83 100644 ---- a/utils/rpctrace.c -+++ b/utils/rpctrace.c -@@ -1219,7 +1219,25 @@ trace_and_forward (mach_msg_header_t *inp, mach_msg_header_t *outp) - /* Look up our record for the receiving port. There is no need to check - the class, because our port bucket only ever contains one class of - ports (traced_class). */ -- info = ports_lookup_port (traced_bucket, inp->msgh_local_port, 0); -+ -+ if (MACH_MSGH_BITS_LOCAL (inp->msgh_bits) == MACH_MSG_TYPE_PROTECTED_PAYLOAD) -+ { -+ info = (struct traced_info *) inp->msgh_protected_payload; -+ if (info && info->pi.bucket == traced_bucket) -+ { -+ ports_port_ref (info); -+ /* Undo the protected payload optimization for our tracee. */ -+ inp->msgh_bits = MACH_MSGH_BITS ( -+ MACH_MSGH_BITS_REMOTE (inp->msgh_bits), -+ MACH_MSG_TYPE_PORT_SEND); /* XXX we cannot know the real type :( */ -+ inp->msgh_local_port = ports_payload_get_name (info); -+ } -+ else -+ info = NULL; -+ } -+ else -+ info = ports_lookup_port (traced_bucket, inp->msgh_local_port, 0); -+ - assert (info); - - /* A notification message from the kernel appears to have been sent --- -2.1.3 - |