Lines Matching refs:args
992 struct synthesize_threads_arg *args = arg;
994 __perf_event__synthesize_threads(args->tool, args->process,
995 args->machine,
996 args->needs_mmap, args->mmap_data,
997 args->dirent,
998 args->start, args->num);
1008 struct synthesize_threads_arg *args = NULL;
1046 args = calloc(sizeof(*args), thread_nr);
1047 if (args == NULL)
1053 args[i].tool = tool;
1054 args[i].process = process;
1055 args[i].machine = machine;
1056 args[i].needs_mmap = needs_mmap;
1057 args[i].mmap_data = mmap_data;
1058 args[i].dirent = dirent;
1061 args[i].num = num_per_thread + 1;
1062 args[i].start = i * args[i].num;
1065 base = args[i-1].start + args[i-1].num;
1067 args[j].num = num_per_thread;
1068 args[j].start = base + (j - i) * args[i].num;
1073 synthesize_threads_worker, &args[i]))
1080 free(args);