perf: fix PERF_EVENT_IOC_REFRESH
Change-Id: Ia5d3fbe344346aabc3b5d40a801b3c21cfbaac97
This commit is contained in:
@@ -4231,7 +4231,6 @@ perf_ioctl(struct mckfd *sfd, ihk_mc_user_context_t *ctx)
|
|||||||
{
|
{
|
||||||
unsigned int cmd = ihk_mc_syscall_arg1(ctx);
|
unsigned int cmd = ihk_mc_syscall_arg1(ctx);
|
||||||
struct mc_perf_event *event = (struct mc_perf_event*)sfd->data;
|
struct mc_perf_event *event = (struct mc_perf_event*)sfd->data;
|
||||||
int counter_id = event->counter_id;
|
|
||||||
struct mcs_rwlock_node_irqsave lock;
|
struct mcs_rwlock_node_irqsave lock;
|
||||||
struct process *proc;
|
struct process *proc;
|
||||||
|
|
||||||
@@ -4279,9 +4278,6 @@ perf_ioctl(struct mckfd *sfd, ihk_mc_user_context_t *ctx)
|
|||||||
if(event->attr.inherit)
|
if(event->attr.inherit)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
event->count += event->attr.sample_freq;
|
|
||||||
ihk_mc_perfctr_set(counter_id, event->attr.sample_freq * -1);
|
|
||||||
|
|
||||||
perf_start(event);
|
perf_start(event);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user