From owner-freebsd-hackers@freebsd.org Mon Sep 11 20:55:16 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9B4A5E23D6B for ; Mon, 11 Sep 2017 20:55:16 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-pg0-x233.google.com (mail-pg0-x233.google.com [IPv6:2607:f8b0:400e:c05::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6908C72765; Mon, 11 Sep 2017 20:55:16 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by mail-pg0-x233.google.com with SMTP id i130so10102316pgc.3; Mon, 11 Sep 2017 13:55:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:date:message-id:cc:to:mime-version; bh=LtqEyjW71+DMy2K8voa6w4prkUrT4tk0QHBePilQ4us=; b=GXyS5jGmYEzRx9jk/IgFACcI4TLbLPw23U8ExifUbxCBmArSfEffy5wRdV1Or38eya vvDAfDXbBYWImZL9ZNsBZdMgBWVzj5uLBYgaAnziRKgnjJ2Q+0SubwaBTaHMdrormdiK rmZcejEDSxcxiFPHmDxt2TbZ3pEymmHcBhvqoueBkh0KufKo16oaK+ciYyeJ4Z2eZPTJ 1Y2Mi6Pt4Rh7x9wiT68cvCmKiqCr5CYw2O3lT1JNfLMgh641teL2yGg4hC1KnR9/IamU iI+YQZkFdkRSYY4wromWg9VkHamY+RpKTzlaYozKj3IA/6yaJf6gMh+q03VLRl9JiJaB cVWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:date:message-id:cc:to:mime-version; bh=LtqEyjW71+DMy2K8voa6w4prkUrT4tk0QHBePilQ4us=; b=n98nKGbMXKbNijvVQKF4sfRTpAQxRKw4u2mg/hVja+vyaUpjnSZJKgq004PdGpSRGE S8GfeaDTK+vz0np9ZG91A257yl3U6sH5lMSQ5sfhL27gbT7KExwcZ02oNXl46wny0f0J HSB09psIMGODYQWRGdBvHX2WDWFU/721R5zoIdviNW6P1AZmHlfdgGCsVuPy1nF/YSqA wcbU74AvFEIJX/xor9rU7NF6LoTIrQlG4r2D3jJoGGlTYHQEK/wcT9CTcYldwDEwTG0r SIGkTfJ41qwqgOhBB6aZRJMLD25I2bxwJmBzbWfuVovxcOcPNkrDQmK/ctoCKnSVh0Yn kJLg== X-Gm-Message-State: AHPjjUhuC2FJE0KdrsytUMHad4bFLt+aNv++c/ojoAM9YyZ1fv9vY40G zBtLWDWswxNRqVlW1ls= X-Google-Smtp-Source: ADKCNb4ng2uRFV06XrSXYT/4I68gb9RK1wVnukDxFO+rutBOKb7CA/3Wbh+vTcPX7XbmuwSnN2VbgQ== X-Received: by 10.99.37.66 with SMTP id l63mr13094173pgl.348.1505163315667; Mon, 11 Sep 2017 13:55:15 -0700 (PDT) Received: from ?IPv6:2620:10d:c096:122:3532:ef25:91ca:bfe0? ([2620:10d:c090:380::2:4405]) by smtp.gmail.com with ESMTPSA id v71sm17981638pfa.45.2017.09.11.13.55.14 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 Sep 2017 13:55:14 -0700 (PDT) From: "Ngie Cooper (yaneurabeya)" X-Pgp-Agent: GPGMail Content-Type: multipart/signed; boundary="Apple-Mail=_C0E698D5-14FF-4B4F-938B-4040A30ECD1A"; protocol="application/pgp-signature"; micalg=pgp-sha512 Subject: Bypassing libcasper (for fun and profit)...? Date: Mon, 11 Sep 2017 13:55:13 -0700 Message-Id: Cc: FreeBSD Hackers To: Mariusz Zaborski Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-Mailman-Approved-At: Mon, 11 Sep 2017 21:00:26 +0000 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Sep 2017 20:55:16 -0000 --Apple-Mail=_C0E698D5-14FF-4B4F-938B-4040A30ECD1A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Mariusz, I=E2=80=99m trying to get runtime coverage to work on = ^/projects/runtime-coverage . I noticed that libcasper is unfortunately = getting in the way of writing .gcda files via install(1) (libgcov and = libprofile_rt hijack binaries and libraries to write out profiling = information at runtime, which doesn=E2=80=99t seem to jive with = libcasper). I assume install(1) won=E2=80=99t be the only program to = have this issue, so a generic solution should probably be implemented. I was wondering if there=E2=80=99s a way that you would like to = design a formalized hook to bypass this, was wondering if you think = conditionally compiling out the functions (as stubs) was the proper way = to do it (security vs flexibility), have the the library implement weak = symbols and override with another library using strong symbols as a = bypass, or use a combination of LD_PRELOAD and hooks to disable = libcasper/turn the calls into warnings (instead of fatal errors). Thanks! -Ngie --Apple-Mail=_C0E698D5-14FF-4B4F-938B-4040A30ECD1A Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJZtvgxAAoJEPWDqSZpMIYV9YEP/iY3RvHkhJckFLICHTNPcuON 2wR2oeptw7IeqKbJI2TZEb/nIVgfQQ4oU9Rhum88L6SC2bWRzSVgYZAyyH5Vrc0T 40s6M5MXS4jiByH22S1kldbQPCjzbhH4kpyAzLT2su0tgGITItQyUANMC76AI/aP KafsNJ0rFmxR8LyCZBE8EicoaZsFuXKCfFiICYbBZbT5Nskdbc8oeAjnQdfwYLcL cKlF7OKMNAExoMF0zgPHe1d2yZg03NDKI5i11zEEi/Kxq8zTiXBNSQZIsC6UwPnZ dklia0AwZuYZdry9HbTwm7ztvrCnK1GNPoc4PKwHYqV92nMd+OXfSC6Y7VwjnKqt jkSEtY8yFykvviRVOHzEtURQeckWQTkp0Xy4k74N0lDefiGA7yBAsFgqzjjja0Mn hxaxkuuSHXoWXLf7f/gF0CEoJuvzuV2ttV3kV+mbWj2F1iAAlU4iDEx0KOgr1ce9 L1ZQaa4EG39hYb3RfVcdeSB7uwm1SlLGNoIximtYCFcwgDbI9b5cn1bbFI9DbwDj 3JMLK1m7ZCjBZeTyYaKXNCpQKQJJDmSZOltK26K2VyunSQcsKmY5spuIvBjjP3i7 WYBfROjGu6BcsXfYe8zNjT2Du77DhrqbFRg5FqH6v6PNoHcglFO69PfHRh7V+A2c XNz5QBzuVqJojBZgEMvf =ytg7 -----END PGP SIGNATURE----- --Apple-Mail=_C0E698D5-14FF-4B4F-938B-4040A30ECD1A--