lkml.org 
[lkml]   [2012]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] kernel-shark: Allow unsetting of all CPUs in filter
From
Date
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);
> }
>
> /**




\
 
 \ /
  Last update: 2012-11-16 00:21    [W:2.946 / U:1.308 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site