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] [day] [month] [year] [list]
Message-ID: <1353021100.9391.0.camel@gandalf.local.home>
Date:	Thu, 15 Nov 2012 18:11:40 -0500
From:	Steven Rostedt <rostedt@...dmis.org>
To:	Vaibhav Nagarnaik <vnagarnaik@...gle.com>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] kernel-shark: Allow unsetting of all CPUs in filter

On Thu, 2012-11-15 at 14:28 -0800, Vaibhav Nagarnaik wrote:

> +	else
> +		cpu_clear(cpu_helper->cpu_mask, cpu);
> +
> +	cpu_helper->allcpus = cpu_allset(cpu_helper->cpu_mask,
> +					 cpu_helper->cpus);
> +	/*
> +	 * Deactivate sending 'toggled' signal for "All CPUs"
> +	 * while we adjust its state
> +	 */
> +	g_signal_handlers_block_by_func(GTK_TOGGLE_BUTTON(cpu_helper->buttons[cpu_helper->cpus]),
> +				        G_CALLBACK (cpu_toggle),
> +				        (gpointer) cpu_helper);

Kind of hacky, but it works.

Applied, Thanks!

-- Steve

>  
>  	gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(cpu_helper->buttons[cpu_helper->cpus]),
> -				     FALSE);
> +				     cpu_helper->allcpus);
> +
> +	g_signal_handlers_unblock_by_func(GTK_TOGGLE_BUTTON(cpu_helper->buttons[cpu_helper->cpus]),
> +					  G_CALLBACK (cpu_toggle),
> +					  (gpointer) cpu_helper);
>  }
>  
>  /**


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ