context_switch
rc = hdev->asic_funcs->context_switch(hdev, ctx->asid);
int (*context_switch)(struct hl_device *hdev, u32 asid);
.context_switch = gaudi_context_switch,
.context_switch = gaudi2_context_switch,
.context_switch = goya_context_switch,
context_switch : 1, /* context switch data */
return event->attr.context_switch;
if (event->attr.context_switch) {
attr->context_switch || attr->text_poke ||
if (event->attr.context_switch) {
rq = context_switch(rq, prev, next, &rf);
FTRACE_ENTRY(context_switch, ctx_switch_entry,
context_switch : 1, /* context switch data */
struct perf_record_switch context_switch;
tracking_evsel->core.attr.context_switch = 1;
switch_evsel->core.attr.context_switch = 1;
gs->tool.context_switch = guest_session__repipe;
u32 pid = event->context_switch.next_prev_pid;
u32 tid = event->context_switch.next_prev_tid;
inject->tool.context_switch = perf_event__drop;
inject->tool.context_switch = host__repipe;
inject->tool.context_switch = host__context_switch;
inject.tool.context_switch = perf_event__repipe;
report.tool.context_switch = perf_event__process_switch;
script->tool.context_switch = process_switch_event;
pid = event->context_switch.next_prev_pid;
tid = event->context_switch.next_prev_tid;
event->context_switch.next_prev_pid,
event->context_switch.next_prev_tid);
pid_t pid = event->context_switch.next_prev_pid;
pid_t tid = event->context_switch.next_prev_tid;
event->context_switch.next_prev_pid,
event->context_switch.next_prev_tid);
attr->context_switch = track;
WRITE_ASS(context_switch, "d");
pid = event->context_switch.next_prev_pid;
tid = event->context_switch.next_prev_tid;
if (evsel->core.attr.context_switch)
evsel->core.attr.context_switch = 1;
PRINT_ATTRf(context_switch, p_unsigned);
&mmap, &context_switch, &comm, &freq, &inherit_stat,
attr.context_switch = context_switch;
pevent->event.context_switch.next_prev_pid,
pevent->event.context_switch.next_prev_tid,
context_switch = 0,
np_pid = event->context_switch.next_prev_pid;
np_tid = event->context_switch.next_prev_tid;
SET_TABLE_HANDLER(context_switch);
return tool->context_switch(tool, event, sample, machine);
if (evsel->core.attr.context_switch)
event->context_switch.next_prev_pid =
bswap_32(event->context_switch.next_prev_pid);
event->context_switch.next_prev_tid =
bswap_32(event->context_switch.next_prev_tid);
swap_sample_id_all(event, &event->context_switch + 1);
tool->context_switch = perf_event__process_switch;
CREATE_DELEGATE_OP(context_switch);
tool->tool.context_switch = delegate_context_switch;
context_switch,
attr.context_switch = 1;