From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7] helo=dude.pengutronix.de.) by metis.ext.pengutronix.de with esmtp (Exim 4.80) (envelope-from ) id 1aQGVE-0007VP-Mc for ptxdist@pengutronix.de; Mon, 01 Feb 2016 16:34:56 +0100 From: Lucas Stach Date: Mon, 1 Feb 2016 16:34:56 +0100 Message-Id: <1454340896-1005-1-git-send-email-l.stach@pengutronix.de> Subject: [ptxdist] [PATCH] valgrind: add upstream patch to make it work with kernel 4.5+ List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de VGhlIGN1cnJlbnQgdmVyc2lvbiBvZiB2YWxncmluZCBicmVha3MgaWYgaXQgaXMgdXNlZCB0b2dl dGhlcgp3aXRoIGtlcm5lbCA0LjUgcnVubmluZyBvbiB0aGUgbWFjaGluZS4KClVwc3RyZWFtIGFs cmVhZHkgaGFzIGEgZml4IGFwcGxpZWQsIGJ1dCB0aGF0IGlzIG5vdCBmb3VuZCBpbgphbnkgcmVs ZWFzZWQgdmVyc2lvbiB5ZXQuIFBpY2sgdGhpcyBmaXggaW50byBvdXIgbG9jYWwgcGF0Y2hlcwp0 byBhbGxvdyB2YWxncmluZCB0byB3b3JrIG9uIHJlY2VudCBrZXJuZWxzIGFnYWluLgoKU2lnbmVk LW9mZi1ieTogTHVjYXMgU3RhY2ggPGwuc3RhY2hAcGVuZ3V0cm9uaXguZGU+Ci0tLQogLi4uU2V0 dGluZy1STElNSVRfREFUQS10by16ZXJvLWJyZWFrcy13aXRoLWwucGF0Y2ggfCAxNDEgKysrKysr KysrKysrKysrKysrKysrCiBwYXRjaGVzL3ZhbGdyaW5kLTMuMTEuMC9zZXJpZXMgIC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IDMz IGRlbGV0aW9ucygtKQorCitkaWZmIC0tZ2l0IGEvY29yZWdyaW5kL21fbGliY3Byb2MuYyBiL2Nv cmVncmluZC9tX2xpYmNwcm9jLmMKK2luZGV4IGYzMTRiNTVlZWE4OC4uYTMwZjdkYzhmMGM1IDEw MDY0NAorLS0tIGEvY29yZWdyaW5kL21fbGliY3Byb2MuYworKysrIGIvY29yZWdyaW5kL21fbGli Y3Byb2MuYworQEAgLTQ1MCw5ICs0NTAsNiBAQCB2b2lkIFZHXyhleGVjdikgKCBjb25zdCBIQ2hh ciogZmlsZW5hbWUsIGNvbnN0IEhDaGFyKiogYXJndiApCisgICAgSENoYXIqKiBlbnZwOworICAg IFN5c1JlcyByZXM7CisgCistICAgLyogcmVzdG9yZSB0aGUgREFUQSBybGltaXQgZm9yIHRoZSBj aGlsZCAqLworLSAgIFZHXyhzZXRybGltaXQpKFZLSV9STElNSVRfREFUQSwgJlZHXyhjbGllbnRf cmxpbWl0X2RhdGEpKTsKKy0KKyAgICBlbnZwID0gVkdfKGVudl9jbG9uZSkoVkdfKGNsaWVudF9l bnZwKSk7CisgICAgVkdfKGVudl9yZW1vdmVfdmFsZ3JpbmRfZW52X3N0dWZmKSggZW52cCwgVHJ1 ZSAvKnJvX3N0cmluZ3MqLywgTlVMTCApOworIAorQEAgLTUxMSwxNyArNTA4LDkgQEAgSW50IFZH XyhzcGF3bikgKCBjb25zdCBIQ2hhciAqZmlsZW5hbWUsIGNvbnN0IEhDaGFyICoqYXJndiApCisg IyAgdW5kZWYgQ09QWV9DSEFSX1RPX0FSR0VOVgorICMgIHVuZGVmIENPUFlfU1RSSU5HX1RPQVJH RU5WCisgCistICAgLyogSEFDSzogVGVtcG9yYXJpbHkgcmVzdG9yZSB0aGUgREFUQSBybGltaXQg Zm9yIHNwYXduZWQgY2hpbGQuICovCistICAgVkdfKHNldHJsaW1pdCkoVktJX1JMSU1JVF9EQVRB LCAmVkdfKGNsaWVudF9ybGltaXRfZGF0YSkpOworLQorICAgIFN5c1JlcyByZXMgPSBWR18oZG9f c3lzY2FsbDUpKF9fTlJfc3Bhd24sIChVV29yZCkgZmlsZW5hbWUsIChVV29yZCkgTlVMTCwgMCwK KyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoVVdvcmQpIGFyZ2VudiwgYXJnZW52 X3NpemUpOworIAorLSAgIC8qIFJlc3RvcmUgREFUQSBybGltaXQgYmFjayB0byBpdHMgcHJldmlv dXMgdmFsdWUgc2V0IGluIG1fbWFpbi5jLiAqLworLSAgIHN0cnVjdCB2a2lfcmxpbWl0IHplcm8g PSB7IDAsIDAgfTsKKy0gICB6ZXJvLnJsaW1fbWF4ID0gVkdfKGNsaWVudF9ybGltaXRfZGF0YSku cmxpbV9tYXg7CistICAgVkdfKHNldHJsaW1pdCkoVktJX1JMSU1JVF9EQVRBLCAmemVybyk7Cist CisgICAgVkdfKGZyZWUpKGFyZ2Vudik7CisgICAgZm9yIChIQ2hhciAqKnAgPSBlbnZwOyAqcCAh PSBOVUxMOyBwKyspIHsKKyAgICAgICBWR18oZnJlZSkoKnApOworZGlmZiAtLWdpdCBhL2NvcmVn cmluZC9tX21haW4uYyBiL2NvcmVncmluZC9tX21haW4uYworaW5kZXggMTgyMWM5NDEyZmE3Li45 YjY1OWFlNTY0YjUgMTAwNjQ0CistLS0gYS9jb3JlZ3JpbmQvbV9tYWluLmMKKysrKyBiL2NvcmVn cmluZC9tX21haW4uYworQEAgLTE2MjcsNyArMTYyNyw2IEBAIEludCB2YWxncmluZF9tYWluICgg SW50IGFyZ2MsIEhDaGFyICoqYXJndiwgSENoYXIgKiplbnZwICkKKyAgICBCb29sICAgIGxvZ2dp bmdfdG9fZmQgICAgICA9IEZhbHNlOworICAgIGNvbnN0IEhDaGFyKiB4bWxfZm5hbWVfdW5leHBh bmRlZCA9IE5VTEw7CisgICAgSW50ICAgICBsb2dsZXZlbCwgaTsKKy0gICBzdHJ1Y3QgdmtpX3Js aW1pdCB6ZXJvID0geyAwLCAwI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lcyA9IFZHXyhkb19zeXNjYWxsNSkoX19OUl9zcGF3biwgKFVXb3JkKSBwYXRoLCAo VVdvcmQpIGF0dHJzLAorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGF0dHJzX3Np emUsIChVV29yZCkgYXJnZW52LCBhcmdlbnZfc2l6ZSk7CisgICAgU0VUX1NUQVRVU19mcm9tX1N5 c1JlcyhyZXMpOworICAgIFZHXyhmcmVlKShhcmdlbnYpOworIAorLSAgIC8qIFJlc3RvcmUgREFU QSBybGltaXQgYmFjayB0byBpdHMgcHJldmlvdXMgdmFsdWUgc2V0IGluIG1fbWFpbi5jLiAqLwor LSAgIHN0cnVjdCB2a2lfcmxpbWl0IHplcm8gPSB7IDAsIDAgfTsKKy0gICB6ZXJvLnJsaW1fbWF4 ID0gVkdfKGNsaWVudF9ybGltaXRfZGF0YSkucmxpbV9tYXg7CistICAgVkdfKHNldHJsaW1pdCko VktJX1JMSU1JVF9EQVRBLCAmemVybyk7CistCisgICAgaWYgKFNVQ0NFU1MpIHsKKyAgICAgICBQ UklOVCgiICAgc3Bhd246IHByb2Nlc3MgJWQgc3Bhd25lZCBjaGlsZCAlbGRcbiIsIFZHXyhnZXRw aWQpKCksIFJFUyk7CisgICAgfQorQEAgLTM2MTksOSArMzYxMCw2IEBAIFBSRShzeXNfZXhlY3Zl KQorICAgICAgIFZHXyhzaWdwcm9jbWFzaykoVktJX1NJR19TRVRNQVNLLCAmdHN0LT5zaWdfbWFz aywgTlVMTCk7CisgICAgfQorIAorLSAgIC8qIFJlc3RvcmUgdGhlIERBVEEgcmxpbWl0IGZvciB0 aGUgY2hpbGQuICovCistICAgVkdfKHNldHJsaW1pdCkoVktJX1JMSU1JVF9EQVRBLCAmVkdfKGNs aWVudF9ybGltaXRfZGF0YSkpOworLQorICAgIC8qIERlYnVnLW9ubHkgcHJpbnRpbmcuICovCisg ICAgaWYgKDApIHsKKyAgICAgICBIQ2hhciAqKmNwcDsKZGlmZiAtLWdpdCBhL3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