From owner-freebsd-arch@freebsd.org Mon Dec 19 20:27:33 2016 Return-Path: Delivered-To: freebsd-arch@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 978F1C8891A; Mon, 19 Dec 2016 20:27:33 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wm0-x22d.google.com (mail-wm0-x22d.google.com [IPv6:2a00:1450:400c:c09::22d]) (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 3047819A8; Mon, 19 Dec 2016 20:27:33 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-wm0-x22d.google.com with SMTP id a197so103305637wmd.0; Mon, 19 Dec 2016 12:27:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=HOjDF+E0nEZuBfG11fvtIUGM/mFXeuCvjZH+TDYxm9w=; b=nx1/Jt8dq/WTJY5w3AL6sbngXI0CoTkB3VyHUJC5bXTfDcnRyhsxvic1RxlggfakI3 LVyxY46lotAiLZFqWHkkd9P8f+vK6MAg02jyPaOYIDQx1NPedKGBFUlaB4iwHrgvY8MQ sHsTuOd1A73nwxVSpNkeiwrhjgMyjxKx+U1OwrQFpTwDEa+JS6MIE8So9z//GvBE/3sk tTO0TRsjdx+191+/GTe06y/js5tyA+MVYBEFt6fcQCS1ecjUH21lTYX3MO/LkddrWZm5 BsxaXRXJ2mL0haperf7AqzXPKE4z+rGnFsy2qx3XhAYtXH7rRxSvLl3FUKIylsE64Zk2 Gt0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=HOjDF+E0nEZuBfG11fvtIUGM/mFXeuCvjZH+TDYxm9w=; b=CGs2OUMQFgFObHJZbCjM7t3rf5+MGgcepypBI6qhzIF0OzlJmRZU6ONtN+DSEacEIw 9XHe8b8vTTZNC3tP64PP7win8wDU1Boc3E8wHemB2IRrHebfjmeAZcbQdSDh69BTsLmf +yG5Pq9rer2NLn57cHL3oTTS2sJQlpfHrK60+WBJSZDFLRU+h9vS5tVyJQCSh45EH+6e pzlFL5v6hDyyIpwlM/plAKTP+MY9f2V0Plgtzd4jX82NooYCmB6S7kA1OoMveIxSppr1 2pU1Leaj2a2wnAswo8dI67i5S8XbVfQZ9q3ug77oNzCiu1eYZ4jhtSU+Y1a+Cyw34gRR rXBQ== X-Gm-Message-State: AIkVDXKvtUbtnD2MkA+jxFQpghz2iXbzWftU6yKiEaBE6wSGwJOzjs03TUGX4Rrl+2LtGlorPCbA8kUmmk2Bng== X-Received: by 10.28.228.5 with SMTP id b5mr14157568wmh.129.1482179251399; Mon, 19 Dec 2016 12:27:31 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.44.1 with HTTP; Mon, 19 Dec 2016 12:27:30 -0800 (PST) In-Reply-To: <20161220.043646.1181938468712455328.hrs@allbsd.org> References: <20161220.043646.1181938468712455328.hrs@allbsd.org> From: Adrian Chadd Date: Mon, 19 Dec 2016 12:27:30 -0800 Message-ID: Subject: Re: RFC: DTrace probes for debugging or testing in userland programs To: "freebsd-arch@freebsd.org" Cc: freebsd-current Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2016 20:27:33 -0000 Hi, I'd love to see a unified-ish logging API for FreeBSD applications. I always end up reusing some C code I have here that I based on some Squid style logging API in ages past. I could always polish it up and put it up for review. I'm not a big fan of requiring dtrace to use it though. On a lot of the embedded systems dtrace varies from "it's very big" through to "we don't have enough RAM/flash to do this". So although I like the sentiment, I don't think using dtrace for program logging is the right answer. I like what apple did to wrap the program logging stuff so people didn't just write their own libraries (hi!) and so there's a unified-ish way to interact with apple programs. I think we could do with that. Thanks, -adrian