message: [pcm] check core_gen_counter_num_max before setting core_gen_counter_num_used
diff: @@ -2144,9 +2144,12 @@ PCM::ErrorCode PCM::program(const PCM::ProgramMode mode_, const void * parameter
  if (isAtom() == false && cpu_model != KNL)
  {
  coreEventDesc[2] = pDesc[2];
  + core_gen_counter_num_used = 3;
  + if (core_gen_counter_num_max > 3) {
  coreEventDesc[3] = pDesc[3];
  core_gen_counter_num_used = 4;
  }
  + }
  else
  core_gen_counter_num_used = 2;
  }
  