Lines Matching defs:thread
30 #include "../../util/thread.h"
2276 static struct thread *hist_browser__selected_thread(struct hist_browser *browser)
2278 return browser->he_selection->thread;
2417 struct thread *thread;
2511 struct thread *thread = act->thread;
2513 if ((!hists__has(browser->hists, thread) &&
2514 !hists__has(browser->hists, comm)) || thread == NULL)
2523 if (hists__has(browser->hists, thread)) {
2524 ui_helpline__fpush("To zoom out press ESC or ENTER + \"Zoom out of %s(%d) thread\"",
2525 thread->comm_set ? thread__comm_str(thread) : "",
2526 thread->tid);
2528 ui_helpline__fpush("To zoom out press ESC or ENTER + \"Zoom out of %s thread\"",
2529 thread->comm_set ? thread__comm_str(thread) : "");
2532 browser->hists->thread_filter = thread__get(thread);
2544 char **optstr, struct thread *thread)
2548 if ((!hists__has(browser->hists, thread) &&
2549 !hists__has(browser->hists, comm)) || thread == NULL)
2552 if (hists__has(browser->hists, thread)) {
2553 ret = asprintf(optstr, "Zoom %s %s(%d) thread",
2555 thread->comm_set ? thread__comm_str(thread) : "",
2556 thread->tid);
2558 ret = asprintf(optstr, "Zoom %s %s thread",
2560 thread->comm_set ? thread__comm_str(thread) : "");
2565 act->thread = thread;
2670 if (act->thread)
2671 len += strlen(thread__comm_str(act->thread));
2679 if (act->thread) {
2681 thread__comm_str(act->thread));
2720 struct thread *thread, struct symbol *sym,
2724 if (thread) {
2725 if (asprintf(optstr, "Run scripts for samples of thread [%s]%s",
2726 thread__comm_str(thread), tstr) < 0)
2737 act->thread = thread;
2747 struct thread *thread, struct symbol *sym,
2753 n = add_script_opt_2(browser, act, optstr, thread, sym, evsel, "");
2767 n += add_script_opt_2(browser, act, optstr, thread, sym,
3027 struct thread *thread = NULL;
3038 thread = hist_browser__selected_thread(browser);
3144 actions->thread = thread;
3164 actions->thread = NULL;
3244 * Ditto for thread below.
3312 &options[nr_options], thread);
3328 if (hists__has(hists, thread) && thread) {
3332 thread, NULL, evsel);