Lines Matching defs:thread
30 #include "../../util/thread.h"
2277 static struct thread *hist_browser__selected_thread(struct hist_browser *browser)
2279 return browser->he_selection->thread;
2418 struct thread *thread;
2514 struct thread *thread = act->thread;
2516 if ((!hists__has(browser->hists, thread) &&
2517 !hists__has(browser->hists, comm)) || thread == NULL)
2527 thread__comm_set(thread) ? thread__comm_str(thread) : "";
2529 if (hists__has(browser->hists, thread)) {
2530 ui_helpline__fpush("To zoom out press ESC or ENTER + \"Zoom out of %s(%d) thread\"",
2531 comm_set_str, thread__tid(thread));
2533 ui_helpline__fpush("To zoom out press ESC or ENTER + \"Zoom out of %s thread\"",
2537 browser->hists->thread_filter = thread__get(thread);
2549 char **optstr, struct thread *thread)
2554 if ((!hists__has(browser->hists, thread) &&
2555 !hists__has(browser->hists, comm)) || thread == NULL)
2559 comm_set_str = thread__comm_set(thread) ? thread__comm_str(thread) : "";
2560 if (hists__has(browser->hists, thread)) {
2561 ret = asprintf(optstr, "Zoom %s %s(%d) thread",
2562 in_out, comm_set_str, thread__tid(thread));
2564 ret = asprintf(optstr, "Zoom %s %s thread", in_out, comm_set_str);
2569 act->thread = thread;
2675 if (act->thread)
2676 len += strlen(thread__comm_str(act->thread));
2684 if (act->thread) {
2686 thread__comm_str(act->thread));
2725 struct thread *thread, struct symbol *sym,
2729 if (thread) {
2730 if (asprintf(optstr, "Run scripts for samples of thread [%s]%s",
2731 thread__comm_str(thread), tstr) < 0)
2742 act->thread = thread;
2752 struct thread *thread, struct symbol *sym,
2758 n = add_script_opt_2(browser, act, optstr, thread, sym, evsel, "");
2772 n += add_script_opt_2(browser, act, optstr, thread, sym,
3028 struct thread *thread = NULL;
3039 thread = hist_browser__selected_thread(browser);
3146 actions->thread = thread;
3166 actions->thread = NULL;
3246 * Ditto for thread below.
3314 &options[nr_options], thread);
3330 if (hists__has(hists, thread) && thread) {
3334 thread, NULL, evsel);