perf: fix PERF_EVENT_IOC_REFRESH

Change-Id: Ia5d3fbe344346aabc3b5d40a801b3c21cfbaac97
This commit is contained in:
TOIDA,Suguru
2019-11-19 16:34:14 +09:00
parent a27909be88
commit 117f070fd6

View File

@ -4231,7 +4231,6 @@ perf_ioctl(struct mckfd *sfd, ihk_mc_user_context_t *ctx)
{
unsigned int cmd = ihk_mc_syscall_arg1(ctx);
struct mc_perf_event *event = (struct mc_perf_event*)sfd->data;
int counter_id = event->counter_id;
struct mcs_rwlock_node_irqsave lock;
struct process *proc;
@ -4279,9 +4278,6 @@ perf_ioctl(struct mckfd *sfd, ihk_mc_user_context_t *ctx)
if(event->attr.inherit)
return -EINVAL;
event->count += event->attr.sample_freq;
ihk_mc_perfctr_set(counter_id, event->attr.sample_freq * -1);
perf_start(event);
break;