MCPcopy Create free account
hub / github.com/apache/trafficserver / LifecycleHookTracer

Function LifecycleHookTracer

tests/tools/plugins/cont_schedule.cc:324–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322}
323
324static int
325LifecycleHookTracer(TSCont /* contp ATS_UNUSED */, TSEvent event, void * /* edata ATS_UNUSED */)
326{
327 if (event == TS_EVENT_LIFECYCLE_TASK_THREADS_READY) {
328 switch (test_flag) {
329 case 1:
330 TSContThreadAffinity_test();
331 break;
332 case 2:
333 TSContScheduleOnPool_test();
334 break;
335 case 3:
336 TSContScheduleOnThread_test();
337 break;
338 case 4:
339 TSContScheduleOnEntirePool_test();
340 break;
341 case 5:
342 TSContScheduleEveryOnPool_test();
343 break;
344 case 6:
345 TSContScheduleEveryOnThread_test();
346 break;
347 case 7:
348 TSContScheduleEveryOnEntirePool_test();
349 break;
350 default:
351 break;
352 }
353 }
354 return 0;
355}
356
357void
358TSPluginInit(int argc, const char *argv[])

Callers

nothing calls this directly

Tested by

no test coverage detected