YuuichiNakamura commented on a change in pull request #1377:
URL: https://github.com/apache/incubator-nuttx/pull/1377#discussion_r493666745



##########
File path: include/nuttx/note/notectl_driver.h
##########
@@ -0,0 +1,128 @@
+/****************************************************************************
+ * include/nuttx/note/notectl_driver.h
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.  The
+ * ASF licenses this file to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the
+ * License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
+ * License for the specific language governing permissions and limitations
+ * under the License.
+ *
+ ****************************************************************************/
+
+#ifndef __INCLUDE_NUTTX_NOTE_NOTECTL_DRIVER_H
+#define __INCLUDE_NUTTX_NOTE_NOTECTL_DRIVER_H
+
+/****************************************************************************
+ * Included Files
+ ****************************************************************************/
+
+#include <nuttx/config.h>
+
+#include <sys/types.h>
+#include <stdint.h>
+
+#include <nuttx/sched_note.h>
+#include <nuttx/fs/ioctl.h>
+
+#ifdef CONFIG_SCHED_INSTRUMENTATION
+
+/****************************************************************************
+ * Pre-processor Definitions
+ ****************************************************************************/
+
+/* IOCTL Commands ***********************************************************/
+
+/* TRIOC_START
+ *              - Start task tracing
+ *                Argument: Ignored
+ * TRIOC_STOP
+ *              - Stop task tracing
+ *                Argument: Ignored
+ * TRIOC_GETMODE
+ *              - Get task trace mode
+ *                Argument: A writable pointer to struct note_trace_mode_s
+ * TRIOC_SETMODE
+ *              - Set task trace mode
+ *                Argument: A read-only pointer to struct note_trace_mode_s
+ * TRIOC_GETSYSCALLFILTER
+ *              - Get syscall trace filter setting
+ *                Argument: A writable pointer to struct
+ *                          note_trace_syscallfilter_s
+ * TRIOC_SETSYSCALLFILTER
+ *              - Set syscall trace filter setting
+ *                Argument: A read-only pointer to struct
+ *                          note_trace_syscallfilter_s
+ * TRIOC_GETIRQFILTER
+ *              - Get IRQ trace filter setting
+ *                Argument: A writable pointer to struct
+ *                          note_trace_irqfilter_s
+ * TRIOC_SETIRQFILTER
+ *              - Set IRQ trace filter setting
+ *                Argument: A read-only pointer to struct
+ *                          note_trace_irqfilter_s
+ */
+
+#ifdef CONFIG_DRIVER_NOTECTL
+
+#define _NOTECTLBASE        (0xfe00)
+#define _NOTECTLIOCVALID(c) (_IOC_TYPE(c) == _NOTECTLBASE)
+#define _NOTECTLIOC(nr)     _IOC(_NOTECTLBASE, nr)

Review comment:
       I have moved it.
   I have added new ioctl base number to the existing ioctls.
   
   




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to