Displaying 20 results from an estimated 58 matches for "seq_read".
2019 Sep 04
1
[PATCH] drm/nouveau: add missing single_release()
.../gpu/drm/nouveau/nouveau_debugfs.c
index 7dfbbbc1beea..35695f493271 100644
--- a/drivers/gpu/drm/nouveau/nouveau_debugfs.c
+++ b/drivers/gpu/drm/nouveau/nouveau_debugfs.c
@@ -202,6 +202,7 @@ static const struct file_operations nouveau_pstate_fops = {
.open = nouveau_debugfs_pstate_open,
.read = seq_read,
.write = nouveau_debugfs_pstate_set,
+ .release = single_release,
};
static struct drm_info_list nouveau_debugfs_list[] = {
2006 Feb 09
1
[Bug 445] New: ipt_account reports: sleeping function called from invalid context at mm/slab.c:2063
...tion called from invalid context at mm/slab.c:2063
in_atomic():1[expected: 0], irqs_disabled():0
Call Trace:<ffffffff80131dd7>{__might_sleep+173}
<ffffffff8015fcab>{kmem_cache_alloc+34}
<ffffffffa01b7130>{:ipt_account:account_seq_start+51}
<ffffffff80193624>{seq_read+235} <ffffffff801770bf>{vfs_read+207}
<ffffffff80177316>{sys_read+69} <ffffffff80110092>{system_call+126}
If I move the kmalloc and kfree in account_seq_start and account_seq_stop to
outside the spin-lock, these messages go away. I don't see that the lock does
anyt...
2016 May 25
3
[PATCH] x86/paravirt: Do not trace _paravirt_ident_*() functions
...fff81231068>] ? find_vma+0x68/0x70
[<ffffffff810ab741>] __do_page_fault+0x1b1/0x4e0
[<ffffffff810aba92>] do_page_fault+0x22/0x30
[<ffffffff81cc7f68>] page_fault+0x28/0x30
[<ffffffff81574af5>] ? copy_user_enhanced_fast_string+0x5/0x10
[<ffffffff8129dec5>] ? seq_read+0x305/0x370
[<ffffffff81279668>] __vfs_read+0x28/0xe0
[<ffffffff81279645>] ? __vfs_read+0x5/0xe0
[<ffffffff81279645>] ? __vfs_read+0x5/0xe0
[<ffffffff81279df6>] vfs_read+0x86/0x130
[<ffffffff8127b216>] SyS_read+0x46/0xa0
[<ffffffff81cc6176>] entry_SYS...
2016 May 25
3
[PATCH] x86/paravirt: Do not trace _paravirt_ident_*() functions
...fff81231068>] ? find_vma+0x68/0x70
[<ffffffff810ab741>] __do_page_fault+0x1b1/0x4e0
[<ffffffff810aba92>] do_page_fault+0x22/0x30
[<ffffffff81cc7f68>] page_fault+0x28/0x30
[<ffffffff81574af5>] ? copy_user_enhanced_fast_string+0x5/0x10
[<ffffffff8129dec5>] ? seq_read+0x305/0x370
[<ffffffff81279668>] __vfs_read+0x28/0xe0
[<ffffffff81279645>] ? __vfs_read+0x5/0xe0
[<ffffffff81279645>] ? __vfs_read+0x5/0xe0
[<ffffffff81279df6>] vfs_read+0x86/0x130
[<ffffffff8127b216>] SyS_read+0x46/0xa0
[<ffffffff81cc6176>] entry_SYS...
2007 Apr 18
1
[RFC, PATCH 21/24] i386 Vmi proc node
...ycle count: %lld\n", page_fault_cycles);
+
+ return 0;
+}
+
+static int proc_vmi_info_open(struct inode *inode, struct file *file)
+{
+ return single_open(file, proc_vmi_info_show, NULL);
+}
+
+static struct file_operations proc_vmi_info_operations = {
+ .open = proc_vmi_info_open,
+ .read = seq_read,
+ .llseek = seq_lseek,
+ .release = single_release,
+};
+
+#define VDEF(call) #call ,
+static char *vmi_call_name[] = {
+ VMI_CALLS
+};
+#undef VDEF
+
+static void print_annotation(struct seq_file *m, struct vmi_annotation *a)
+{
+ seq_printf(m, "%s %p %d %p %d %d\n",
+ vmi_call_...
2007 Apr 18
1
[RFC, PATCH 21/24] i386 Vmi proc node
...ycle count: %lld\n", page_fault_cycles);
+
+ return 0;
+}
+
+static int proc_vmi_info_open(struct inode *inode, struct file *file)
+{
+ return single_open(file, proc_vmi_info_show, NULL);
+}
+
+static struct file_operations proc_vmi_info_operations = {
+ .open = proc_vmi_info_open,
+ .read = seq_read,
+ .llseek = seq_lseek,
+ .release = single_release,
+};
+
+#define VDEF(call) #call ,
+static char *vmi_call_name[] = {
+ VMI_CALLS
+};
+#undef VDEF
+
+static void print_annotation(struct seq_file *m, struct vmi_annotation *a)
+{
+ seq_printf(m, "%s %p %d %p %d %d\n",
+ vmi_call_...
2014 Nov 26
1
[PATCH v12 09/11] pvqspinlock, x86: Add para-virtualization support
...gt;] ? test_spinlock+0x65/0x90 [locktest]
[<ffffffffa06ff785>] etime_show+0xd5/0x120 [locktest]
[<ffffffff812a2dc6>] kobj_attr_show+0x16/0x20
[<ffffffff8121a7fa>] sysfs_kf_seq_show+0xca/0x1b0
[<ffffffff81218a13>] kernfs_seq_show+0x23/0x30
[<ffffffff811c82db>] seq_read+0xbb/0x400
[<ffffffff812197e5>] kernfs_fop_read+0x35/0x40
[<ffffffff811a4223>] vfs_read+0xa3/0x110
[<ffffffff811a47e6>] SyS_read+0x56/0xd0
[<ffffffff810f3e16>] ? __audit_syscall_exit+0x216/0x2c0
[<ffffffff815b3ca9>] system_call_fastpath+0x16/0x1b
Code: Bad R...
2014 Nov 26
1
[PATCH v12 09/11] pvqspinlock, x86: Add para-virtualization support
...gt;] ? test_spinlock+0x65/0x90 [locktest]
[<ffffffffa06ff785>] etime_show+0xd5/0x120 [locktest]
[<ffffffff812a2dc6>] kobj_attr_show+0x16/0x20
[<ffffffff8121a7fa>] sysfs_kf_seq_show+0xca/0x1b0
[<ffffffff81218a13>] kernfs_seq_show+0x23/0x30
[<ffffffff811c82db>] seq_read+0xbb/0x400
[<ffffffff812197e5>] kernfs_fop_read+0x35/0x40
[<ffffffff811a4223>] vfs_read+0xa3/0x110
[<ffffffff811a47e6>] SyS_read+0x56/0xd0
[<ffffffff810f3e16>] ? __audit_syscall_exit+0x216/0x2c0
[<ffffffff815b3ca9>] system_call_fastpath+0x16/0x1b
Code: Bad R...
2013 Sep 05
0
[PATCH RESEND v3 3/7] Intel MIC Host Driver, card OS state management.
...le_open(file, mic_log_buf_show, inode->i_private);
+}
+
+static int mic_log_buf_release(struct inode *inode, struct file *file)
+{
+ return single_release(inode, file);
+}
+
+static const struct file_operations log_buf_ops = {
+ .owner = THIS_MODULE,
+ .open = mic_log_buf_open,
+ .read = seq_read,
+ .llseek = seq_lseek,
+ .release = mic_log_buf_release
+};
+
+static int mic_smpt_show(struct seq_file *s, void *pos)
+{
+ int i;
+ struct mic_device *mdev = s->private;
+ unsigned long flags;
+
+ seq_printf(s, "MIC %-2d |%-10s| %-14s %-10s\n",
+ mdev->id, "SMPT entry"...
2016 Mar 21
0
[PATCH v2 22/22] debugfs: add boost interface to change the boost_mode
...}
+
+static int
+nouveau_debugfs_boost_open(struct inode *inode, struct file *file)
+{
+ return single_open(file, nouveau_debugfs_boost_get, inode->i_private);
+}
+
+static const struct file_operations nouveau_boost_fops = {
+ .owner = THIS_MODULE,
+ .open = nouveau_debugfs_boost_open,
+ .read = seq_read,
+ .write = nouveau_debugfs_boost_set,
+};
+
static struct drm_info_list nouveau_debugfs_list[] = {
{ "vbios.rom", nouveau_debugfs_vbios_image, 0, NULL },
};
@@ -189,6 +264,7 @@ static const struct nouveau_debugfs_files {
const char *name;
const struct file_operations *fops;
} no...
2019 Sep 05
0
[PATCH] drm/nouveau: add missing single_release()
...dex 7dfbbbc1beea..35695f493271 100644
> --- a/drivers/gpu/drm/nouveau/nouveau_debugfs.c
> +++ b/drivers/gpu/drm/nouveau/nouveau_debugfs.c
> @@ -202,6 +202,7 @@ static const struct file_operations nouveau_pstate_fops = {
> .open = nouveau_debugfs_pstate_open,
> .read = seq_read,
> .write = nouveau_debugfs_pstate_set,
> + .release = single_release,
> };
>
> static struct drm_info_list nouveau_debugfs_list[] = {
>
>
>
> _______________________________________________
> dri-devel mailing list
> dri-devel at lists.freedesktop.o...
2020 Jul 21
0
[PATCH -next] drm/nouveau/kms/nvd9-: Fix file release memory leak
...17fb6d56757..4971a1042415 100644
> --- a/drivers/gpu/drm/nouveau/dispnv50/crc.c
> +++ b/drivers/gpu/drm/nouveau/dispnv50/crc.c
> @@ -706,6 +706,7 @@ static const struct file_operations
> nv50_crc_flip_threshold_fops = {
> .open = nv50_crc_debugfs_flip_threshold_open,
> .read = seq_read,
> .write = nv50_crc_debugfs_flip_threshold_set,
> + .release = single_release,
> };
>
> int nv50_head_crc_late_register(struct nv50_head *head)
>
>
>
--
Cheers,
Lyude Paul (she/her)
Software Engineer at Red Hat
2008 Feb 26
2
Patch to add debugfs interface to o2net
This is a forward port for net_proc.c from 1.2.
2016 Sep 02
0
[PATCH] x86/paravirt: Do not trace _paravirt_ident_*() functions
...ma+0x68/0x70
> [<ffffffff810ab741>] __do_page_fault+0x1b1/0x4e0
> [<ffffffff810aba92>] do_page_fault+0x22/0x30
> [<ffffffff81cc7f68>] page_fault+0x28/0x30
> [<ffffffff81574af5>] ? copy_user_enhanced_fast_string+0x5/0x10
> [<ffffffff8129dec5>] ? seq_read+0x305/0x370
> [<ffffffff81279668>] __vfs_read+0x28/0xe0
> [<ffffffff81279645>] ? __vfs_read+0x5/0xe0
> [<ffffffff81279645>] ? __vfs_read+0x5/0xe0
> [<ffffffff81279df6>] vfs_read+0x86/0x130
> [<ffffffff8127b216>] SyS_read+0x46/0xa0
> [<f...
2018 Aug 28
0
[PATCH v2 3/4] drm/dp_mst: Add dp_mst_status debugfs node for all drivers
...struct file *file)
+{
+ struct drm_dp_mst_topology_mgr *mgr = inode->i_private;
+
+ return single_open(file, drm_dp_mst_debugfs_state_show, mgr);
+}
+
+static const struct file_operations drm_dp_mst_debugfs_state_fops = {
+ .owner = THIS_MODULE,
+ .open = drm_dp_mst_debugfs_state_open,
+ .read = seq_read,
+ .llseek = seq_lseek,
+ .release = single_release,
+};
+
+struct drm_dp_mst_debugfs_init_data {
+ struct drm_dp_mst_topology_mgr *mgr;
+ char *connector_name;
+};
+
+static void
+drm_dp_mst_debugfs_init(void *data)
+{
+ struct drm_dp_mst_debugfs_init_data *init_data = data;
+ struct drm_dp_mst_to...
2007 Dec 10
2
unstable kernel after update to CentOS 4.5
...151 00000000 00000400 b7fd5000
Dec 10 10:30:01 nx10 kernel: 0000000c 00000000 0000000b 00000000 c0371300 cea00b80 00000400 c63d9fac
Dec 10 10:30:01 nx10 kernel: Call Trace:
Dec 10 10:30:01 nx10 kernel: [<c018e0e3>] show_vfsmnt+0x28/0xf5
Dec 10 10:30:01 nx10 kernel: [<c019157f>] seq_read+0x1c3/0x2bd
Dec 10 10:30:01 nx10 kernel: [<c016c91b>] vfs_read+0xb6/0xe2
Dec 10 10:30:01 nx10 kernel: [<c016cb30>] sys_read+0x3c/0x62
Dec 10 10:30:01 nx10 kernel: [<c031b777>] syscall_call+0x7/0xb
I wonder if I can go back to 2.6.9-34.0.2.EL. Should I expect problems
with oth...
2013 Jul 25
0
[PATCH 1/5] Intel MIC Host Driver for X100 family.
...urn single_open(file, log_buf_seq_show, inode->i_private);
+}
+
+static int log_buf_release(struct inode *inode, struct file *file)
+{
+ return single_release(inode, file);
+}
+
+static const struct file_operations log_buf_ops = {
+ .owner = THIS_MODULE,
+ .open = log_buf_open,
+ .read = seq_read,
+ .llseek = seq_lseek,
+ .release = log_buf_release
+};
+
+static int smpt_seq_show(struct seq_file *s, void *pos)
+{
+ int i;
+ struct mic_device *mdev = s->private;
+ unsigned long flags;
+
+ seq_printf(s, "MIC %-2d |%-10s| %-14s %-10s %-10s %-10s %-10s\n",
+ mdev->id, "SM...
2014 Oct 27
5
[PATCH v12 09/11] pvqspinlock, x86: Add para-virtualization support
On 10/24/2014 04:54 AM, Peter Zijlstra wrote:
> On Thu, Oct 16, 2014 at 02:10:38PM -0400, Waiman Long wrote:
>
>> Since enabling paravirt spinlock will disable unlock function inlining,
>> a jump label can be added to the unlock function without adding patch
>> sites all over the kernel.
> But you don't have to. My patches allowed for the inline to remain,
> again
2014 Oct 27
5
[PATCH v12 09/11] pvqspinlock, x86: Add para-virtualization support
On 10/24/2014 04:54 AM, Peter Zijlstra wrote:
> On Thu, Oct 16, 2014 at 02:10:38PM -0400, Waiman Long wrote:
>
>> Since enabling paravirt spinlock will disable unlock function inlining,
>> a jump label can be added to the unlock function without adding patch
>> sites all over the kernel.
> But you don't have to. My patches allowed for the inline to remain,
> again
2015 Nov 09
5
[PATCH v2 0/5] move pstate interface to debugfs
I made a little changes in this series:
1. merge the two last patches together
2. unify the private data interface with the drm debugfs one
now it should be very obvious for a new dev on how to add new files to debugfs
and how to get access to the nouveau structs
Karol Herbst (5):
debugfs: add infrastructure to add files with other fops than only
read
debugfs: rename functions to