lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <99c2109dd8c4b65be34f5ee00575a267da10b002.camel@redhat.com>
Date: Tue, 25 Nov 2025 11:35:30 -0600
From: Crystal Wood <crwood@...hat.com>
To: Wander Lairson Costa <wander@...hat.com>
Cc: Steven Rostedt <rostedt@...dmis.org>, Tomas Glozar <tglozar@...hat.com>,
  Ivan Pravdin <ipravdin.official@...il.com>, John Kacur
 <jkacur@...hat.com>, Costa Shulyupin	 <costa.shul@...hat.com>, Tiezhu Yang
 <yangtiezhu@...ngson.cn>, "open list:Real-time Linux Analysis (RTLA) tools"
	 <linux-trace-kernel@...r.kernel.org>, open list
 <linux-kernel@...r.kernel.org>,  "open list:BPF
 [MISC]:Keyword:(?:\\b|_)bpf(?:\\b|_)"	 <bpf@...r.kernel.org>
Subject: Re: [rtla 07/13] rtla: Introduce timerlat_restart() helper

On Tue, 2025-11-25 at 11:20 -0300, Wander Lairson Costa wrote:
> On Mon, Nov 24, 2025 at 9:46 PM Crystal Wood <crwood@...hat.com> wrote:
> > 
> > On Mon, 2025-11-17 at 15:41 -0300, Wander Lairson Costa wrote:
> 
> > > +
> > > +                     if (timerlat_bpf_restart_tracing()) {
> > > +                             err_msg("Error restarting BPF trace\n");
> > > +                             return -1;
> > > +                     }
> > 
> > [insert rant about not being able to use exceptions in userspace code in
> > the year 2025]
> > 
> 
> I actually find exceptions an anti-pattern. Modern languages like Zig,
> Go and Rust came back to error returning.

Maybe I'm behind the times, but I see exceptions and error returns as
complementary... not everything should be an exception and I can
certainly see how they could be overused in an anti-pattern way, but
they're nice for getting useful information out rather than "something
failed" without having to add a bunch of debug prints.

-Crystal


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ