int ColorButtonPicker::handle_new_color(int color, int alpha)
{
- update(color, alpha);
- return 1;
+ color_button->lock_window("ColorButtonPicker::handle_new_color");
+ color_button->update_gui(color, alpha);
+ color_button->unlock_window();
+ return color_button->handle_new_color(color, alpha);
}
void ColorButtonPicker::update_gui()
{
BC_PopupTextBox::create_objects();
set_tooltip(_("vdpau - Nvidia, Nouveau\n"
- "vaapi - Broadcom, Intel HD graphics, Amdgup, Radeon\n"
+ "vaapi - Broadcom, Intel HD graphics, Amdgpu, Radeon\n"
"cuda - Nvidia + Cuda SDK"));
hw_dev_names.append(new BC_ListBoxItem(_("none")));
#ifdef HAVE_VAAPI
fprintf(stderr," -1 usr only cpu timer intervals (sigvtalrm)\n");
fprintf(stderr," -2 real time timer intervals (sigalrm)\n");
fprintf(stderr," -u profile timer interval in usecs\n");
+ fprintf(stderr," use: kill -USR1 <pid> to report, rescan and restart\n");
}
long run_to_breakpoint(pid_t ppid, int init_syscall)
exit(1);
}
+ printf("prof pid = %d\n", pid);
execve = sizeof(sysreq_name)/sizeof(sysreq_name[0]);
while( --execve >= 0 && strcmp("execve",sysreq_name[execve]) );
if( execve < 0 ) {
}
}
dprintf(stderr,", %d symbols\n",tsym->n - n);
- if( mod < 0 ) {
+ if( mod < 0 && strncmp("linux-vdso.so.",nm,14) ) {
fprintf(stderr,"profile - Cannot map module - %s\n",nm);
// exit(1);
// return -1;
dprintf(stderr,"starting profile.\n");
}
+static void sigusr1(int n)
+{
+ profileStop();
+ profileShow();
+ delAllTbls();
+ profileStart();
+}
+
int profileMain(int ac,char **av,char **ev)
{
int (*fmain)(int ac,char **av,char **ev);
exit(1);
}
atexit(profileExit);
+ signal(SIGUSR1, sigusr1);
fmain = (int (*)(int,char **,char **))adr;
dprintf(stderr,"starting \"main\" at: %p\n",fmain);
int ret = fmain(ac,av,ev);